boolean (@NotNull RefClass subClass, RefClass superClass) { if (subClass == superClass) return true; LOG.assertTrue(subClass.isInitialized()); for (RefClass baseClass : subClass.getBaseClasses()) { if (isInheritor(baseClass, superClass)) return true; } return false; }