presto-main/src/main/java/io/prestosql/sql/planner/RuleStatsRecorder.java/RuleStatsRecorder/recordFailure
class RuleStatsRecorder:    public void recordFailure(Rule<?> rule)
    {
        stats.get(rule.getClass()).recordFailure();
    }