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