boolean (@NotNull PsiClass curClass, @NotNull PsiClass candidate) { String qualifiedName = curClass.getQualifiedName(); return qualifiedName != null && (qualifiedName.equals(candidate.getQualifiedName()) || curClass.isInheritor(candidate, true)); }