getOrNull

fun <E : Any> ResourceKey<Registry<E>>.getOrNull(): Registry<E>?