PsiExpression (PsiElement element, PsiVariable target) { PsiAssignmentExpression assignment = getAssignment(element); if(assignment != null && isReferenceTo(assignment.getLExpression(), target)) { return assignment.getRExpression(); } return null; }