void (UClass uClass, LinkedHashSet<UClass> superClasses) { for (UTypeReferenceExpression uastSuperType : uClass.getUastSuperTypes()) { PsiClass superClass = PsiUtil.resolveClassInType(uastSuperType.getType()); if (superClass == null || !superClass.getManager().isInProject(superClass)) continue; UClass aClass = UastContextKt.toUElement(superClass, UClass.class); if (aClass != null && superClasses.add(aClass)) { processSupers(aClass, superClasses); } } }