inline fun <reified T : Any> registerInstanceCreator(noinline creator: () -> T): Unit
fun <T : Any> registerInstanceCreator(kClass: KClass<T>, creator: () -> T): Unit
Registers a function to be called when an instance of T is necessary.