presto-main/src/main/java/io/prestosql/sql/planner/OptimizerStatsRecorder.java/OptimizerStatsRecorder/register
class OptimizerStatsRecorder:    public void register(PlanOptimizer optimizer)
    {
        requireNonNull(optimizer, "optimizer is null");
        checkArgument(!optimizer.getClass().isAnonymousClass());
        stats.put(optimizer.getClass(), new OptimizerStats());
    }