@Nullable
  private static PsiLocalVariable findIndexVariable(PsiExpression updateExpression) {
    if (updateExpression instanceof PsiUnaryExpression unaryExpression) {
      return ExpressionUtils.resolveLocalVariable(unaryExpression.getOperand());
    }
    if (updateExpression instanceof PsiAssignmentExpression assignmentExpression) {
      return ExpressionUtils.resolveLocalVariable(assignmentExpression.getLExpression());
    }
    return null;
  }
@Nullable
  private static PsiLocalVariable findIndexVariable(PsiExpression updateExpression)