presto-main/src/main/java/io/prestosql/cost/ComposableStatsCalculator.java/Rule/calculate
class Rule:        Optional<PlanNodeStatsEstimate> calculate(T node, StatsProvider sourceStats, Lookup lookup, Session session, TypeProvider types);