@Override
    public void visitMethod(@NotNull PsiMethod method) {
      if (!isApplicableFor(method)) return;
      final PsiClass containingClass = method.getContainingClass();
      if (containingClass == null || containingClass.isEnum()) {
        return;
      }
      if (!containingClass.hasModifierProperty(PsiModifier.FINAL)) {
        return;
      }
      final PsiModifierList modifiers = method.getModifierList();
      final PsiElement[] children = modifiers.getChildren();
      for (final PsiElement child : children) {
        final String text = child.getText();
        if (PsiModifier.FINAL.equals(text)) {
          registerError(child);
        }
      }
    }
@Override
    public void visitMethod(@NotNull PsiMethod method)