@Nullable
  private @Nls String checkClass(PsiClass psiClass) {
    if (myAnnotationOnly && !psiClass.isAnnotationType()) {
      return JavaBundle.message("validator.text.no.annotation");
    }
    if (!mySuperClasses.isEmpty() &&
        !ContainerUtil.exists(mySuperClasses, superClass -> InheritanceUtil.isInheritor(psiClass, superClass))) {
      return JavaBundle.message("validator.text.wrong.superclass");
    }
    return null;
  }
@Nullable
  private @Nls String checkClass(PsiClass psiClass)