Extensions for java.lang.Class

findAllSupertypes

fun Class<*>.findAllSupertypes(): List<Class<*>>

Calculates a list of all superclasses for the given class