getDistinctForOrNull

fun <T : Any> getDistinctForOrNull(type: KClass<T>): KClass<T>?

Get a distinct super type of the given type or null if there is none or multiple candidates