@Override
    public void visitField(@NotNull PsiField field) {
      PsiClass containingClass = field.getContainingClass();
      if (containingClass == null || containingClass.isEnum()) {
        // https://docs.oracle.com/javase/1.5.0/docs/guide/serialization/spec/serial-arch.html#enum
        return;
      }
      if (ignoreAnonymousInnerClasses && containingClass instanceof PsiAnonymousClass) {
        return;
      }
      if (isIgnoredSubclass(containingClass)) {
        return;
      }
      visitVariable(field, containingClass);
    }
@Override
    public void visitField(@NotNull PsiField field)