fun <R : Any> providerOrNullByKey(key: TypeKey<R>): Provider<R>?
Retrieve an optional provider function by key that returns R.
R
key - The type key of the instance.
key
Return The provider that returns R or null if provider doesn't exist.