find

inline fun <T : Component> ComponentTree<*>.find(crossinline filter: (T) -> Boolean): T?(source)

Finds the first component of type T satisfying the filter, recursively.