PsiExpression (@NotNull PsiMember maybeContainsAssignment, @NotNull PsiField field) { final PsiAssignmentExpression assignment = SyntaxTraverser.psiTraverser(maybeContainsAssignment) .filter(PsiAssignmentExpression.class) .find(expression -> ExpressionUtils.isReferenceTo(expression.getLExpression(), field)); return assignment != null ? assignment.getRExpression() : null; }