PsiField (final PsiAssignmentExpression assignment) { PsiExpression lExpression = PsiUtil.skipParenthesizedExprDown(assignment.getLExpression()); if (!(lExpression instanceof PsiReferenceExpression)) return null; PsiElement resolved = ((PsiReferenceExpression)lExpression).resolve(); if (!(resolved instanceof PsiField)) return null; return (PsiField)resolved; }