@Override
  public void visitUnaryExpression(
    @NotNull PsiUnaryExpression expression) {
    if (assigned) {
      return;
    }
    super.visitUnaryExpression(expression);
    final IElementType tokenType = expression.getOperationTokenType();
    if (!(tokenType.equals(JavaTokenType.PLUSPLUS) ||
          tokenType.equals(JavaTokenType.MINUSMINUS))) {
      return;
    }
    final PsiExpression operand = expression.getOperand();
    final PsiExpression arrayExpression = getDeepArrayExpression(operand);
    if (!(arrayExpression instanceof PsiReferenceExpression referenceExpression)) {
      return;
    }
    final PsiElement referent = referenceExpression.resolve();
    if (referent == null) {
      return;
    }
    if (referent.equals(variable)) {
      assigned = true;
    }
  }
@Override
  public void visitUnaryExpression(
    @NotNull PsiUnaryExpression expression)