PsiLocalVariable (@NotNull PsiAssignmentExpression occurrence) { if (PsiUtil.skipParenthesizedExprDown(occurrence.getRExpression()) instanceof PsiReferenceExpression referenceExpression && referenceExpression.resolve() instanceof PsiLocalVariable localVariable) { return localVariable; } return null; }