findComponent

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

Returns a component of the given class from the ComponentTree or null if not found