whenStaticLocation

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