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