presto-main/src/main/java/io/prestosql/sql/planner/optimizations/StatsRecordingPlanOptimizer.java/StatsRecordingPlanOptimizer/StatsRecordingPlanOptimizer
class StatsRecordingPlanOptimizer:    public StatsRecordingPlanOptimizer(OptimizerStatsRecorder stats, PlanOptimizer delegate)
    {
        this.stats = requireNonNull(stats, "stats is null");
        this.delegate = requireNonNull(delegate, "delegate is null");
        stats.register(delegate);
    }