resolve

fun <T : Any> Context.resolve(target: String, name: Name, type: KClass<out T>): T?
inline fun <T : Any> Context.resolve(target: String, name: Name): T?

Resolve a top level object with given target and name in a Context own scope or its plugins.