findOrSetObject

inline fun <T : Any> findOrSetObject(key: String = DEFAULT_OBJ_KEY, defaultValue: () -> T): T

Find the closest object with key of type T, setting it on this if one is not found.