presto-main/src/main/java/io/prestosql/sql/planner/RuleStatsRecorder.java/RuleStatsRecorder/registerAll
class RuleStatsRecorder:    public void registerAll(Collection<Rule<?>> rules)
    {
        for (Rule<?> rule : rules) {
            checkArgument(!rule.getClass().isAnonymousClass());
            stats.put(rule.getClass(), new RuleStats());
        }
    }