presto-main/src/main/java/io/prestosql/sql/planner/SortExpressionExtractor.java/SortExpressionExtractor/hasBuildSymbolReference
class SortExpressionExtractor:    private static boolean hasBuildSymbolReference(Set<Symbol> buildSymbols, Expression expression)
    {
        return new BuildSymbolReferenceFinder(buildSymbols).process(expression);
    }