ifStaticLocation

inline fun <T> Location.ifStaticLocation(block: (StaticLocation) -> T): T?