presto-main/src/main/java/io/prestosql/operator/HashAggregationOperator.java/HashAggregationOperator/hasOrderBy
class HashAggregationOperator:    private boolean hasOrderBy()
    {
        return accumulatorFactories.stream().anyMatch(AccumulatorFactory::hasOrderBy);
    }