presto-main/src/main/java/io/prestosql/sql/NodeUtils.java/NodeUtils/getSortItemsFromOrderBy
class NodeUtils:    public static List<SortItem> getSortItemsFromOrderBy(Optional<OrderBy> orderBy)
    {
        return orderBy.map(OrderBy::getSortItems).orElse(ImmutableList.of());
    }