inline fun <reified I : Any, T> RootExpectBuilder.OptionsChooser<T>.withComponent(noinline factory: (ComponentFactoryContainer) -> I): Unit
(source)
Convenience function which infers the KClass usually required for RootExpectBuilder.OptionsChooser.withComponent.