@Override
    public void visitArrayInitializerExpression(@NotNull PsiArrayInitializerExpression expression) {
      if (!(expression.getParent() instanceof PsiVariable)) {
        // new expressions are already reported.
        return;
      }
      if (!isInsideEqualsOrHashCode(expression)) {
        return;
      }
      registerError(expression, expression);
    }
@Override
    public void visitArrayInitializerExpression(@NotNull PsiArrayInitializerExpression expression)