boolean (@NotNull JvmClass potentialInheritor, @NotNull String baseFqn) { if (JAVA_LANG_OBJECT.equals(baseFqn)) return true; return testSupers(potentialInheritor, false, superClass -> baseFqn.equals(superClass.getQualifiedName())); }