void (UClass uClass) { if (!isSelfInheritor(uClass)) { uClass.getUastSuperTypes().stream() .map(t -> PsiUtil.resolveClassInClassTypeOnly(t.getType())) .filter(Objects::nonNull) .filter(c -> getRefJavaManager().belongsToScope(c)) .forEach(c -> { RefClassImpl refClass = (RefClassImpl)getRefManager().getReference(c); if (refClass != null) { addBaseClass(refClass); getRefManager().executeTask(() -> refClass.addDerivedReference(this)); } }); } }