boolean (@NotNull PsiAssignmentExpression expression, @NotNull PsiVariable variable) { if (expression.getOperationTokenType() != JavaTokenType.EQ) return false; if (!(expression.getLExpression() instanceof PsiReferenceExpression leftExpression)) return false; return leftExpression.isReferenceTo(variable); }