@Override
    public void visitField(@NotNull PsiField field) {
      super.visitField(field);
      if (!field.hasModifierProperty(PsiModifier.VOLATILE)) {
        return;
      }
      final PsiType type = field.getType();
      if (type.getArrayDimensions() == 0) {
        return;
      }
      registerFieldError(field, type);
    }
@Override
    public void visitField(@NotNull PsiField field)