@Override
    public void visitField(@NotNull PsiField field) {
      super.visitField(field);
      if (field.hasModifierProperty(PsiModifier.FINAL)) {
        return;
      }
      final PsiClass containingClass = field.getContainingClass();
      if (containingClass == null || !containingClass.isEnum()) {
        return;
      }
      if (onlyWarnWhenQuickFix && !FinalUtils.canBeFinal(field)) {
        return;
      }
      registerFieldError(field, containingClass, field);
    }
@Override
    public void visitField(@NotNull PsiField field)