fun <A, R : Any> factoryOrNullByKey(key: TypeKey<A, R>): Factory<A, R>?
Retrieve an optional factory function by key that takes an argument of type A and
returns R.
key - The type key of the factory.
Return
The factory that takes A and returns R or null if factory provider doesn't exist.