gather

fun <T : Any> Context.gather(target: String, type: KClass<out T>, inherit: Boolean = true): Map<Name, T>

Gather a map of all top-level objects with given target from context plugins. Content from plugins is prefixed by plugin name so name conflicts are impossible This operation could be slow in case of large number of plugins

inline fun <T : Any> Context.gather(target: String, inherit: Boolean = true): Map<Name, T>