hierarchy

fun hierarchy(target: Class<*>): List<Class<*>>

target + every superclass + the transitive interface closure, breadth-first. Deliberately uncached: a cache keyed by Class would strong-reference it and pin its loader, and snippet classes DO unload (ReplHost builds a fresh evaluator per eval precisely so they can). One walk per patch install is microseconds.