findDirectComponent

fun findDirectComponent(clazz: KClass<out Component>): Component?
fun findDirectComponent(clazz: Class<out Component?>): Component?

Returns a component of the given class only if it is a direct child of the root component