presto-main/src/main/java/io/prestosql/sql/planner/optimizations/PlanOptimizer.java/PlanOptimizer/optimize
class PlanOptimizer:    PlanNode optimize(
            PlanNode plan,
            Session session,
            TypeProvider types,
            SymbolAllocator symbolAllocator,
            PlanNodeIdAllocator idAllocator,
            WarningCollector warningCollector);