boolean (PsiExpression expression) { if (expression instanceof PsiAssignmentExpression assignmentExpression) { return isField(assignmentExpression.getRExpression()); } if (expression instanceof PsiReferenceExpression referenceExpression) { return referenceExpression.resolve() instanceof PsiField; } return false; }