void (@NotNull PsiAssignmentExpression assignment) { super.visitAssignmentExpression(assignment); final PsiExpression lhs = assignment.getLExpression(); final PsiExpression rhs = assignment.getRExpression(); if (!(lhs instanceof PsiReferenceExpression)) { return; } if (!(rhs instanceof PsiReferenceExpression)) { return; } final PsiElement referent = ((PsiReference)rhs).resolve(); if (referent == null || !referent.equals(param)) { return; } final PsiElement assigned = ((PsiReference)lhs).resolve(); if (!(assigned instanceof PsiField)) { return; } fieldAssigned = (PsiField)assigned; }