getGenericSupertype

open fun getGenericSupertype(context: Type, rawType: Class<out Any>, toResolve: Class<out Any>): Type

Returns the generic supertype for supertype. For example, given a class IntegerSet, the result for when supertype is Set.class is Set<Integer> and the result when the supertype is Collection.class is Collection<Integer>.