presto-main/src/main/java/io/prestosql/cost/ComposableStatsCalculator.java/ComposableStatsCalculator/calculateStats
class ComposableStatsCalculator:    private static <T extends PlanNode> Optional<PlanNodeStatsEstimate> calculateStats(Rule<T> rule, PlanNode node, StatsProvider sourceStats, Lookup lookup, Session session, TypeProvider types)
    {
        return rule.calculate((T) node, sourceStats, lookup, session, types);
    }