presto-main/src/main/java/io/prestosql/sql/planner/QueryPlanner.java/QueryPlanner/hasExpressionsToUnfold
class QueryPlanner:    private boolean hasExpressionsToUnfold(List<SelectExpression> selectExpressions)
    {
        return selectExpressions.stream()
                .map(SelectExpression::getUnfoldedExpressions)
                .anyMatch(Optional::isPresent);
    }