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