docs: private static List<Expression> removeDuplicates(List<Expression> expressions)
      {
          Set<Expression> seen = new HashSet<>();
  
          ImmutableList.Builder<Expression> result = ImmutableList.builder();
          for (Expression expression : expressions) {
              if (!DeterminismEvaluator.isDeterministic(expression)) {
                  result.add(expression);
              }
              else if (!seen.contains(expression)) {
                  result.add(expression);
                  seen.add(expression);
              }
          }
  
          return result.build();
      }