findComponentInLithoView

fun findComponentInLithoView(lithoView: LithoView, clazz: Class<out Component?>): Component?
fun findComponentInLithoView(lithoView: LithoView, clazz: KClass<out Component>): Component?

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