presto-main/src/main/java/io/prestosql/cost/CostCalculator.java/CostCalculator/calculateCost
class CostCalculator:    PlanCostEstimate calculateCost(
            PlanNode node,
            StatsProvider stats,
            CostProvider sourcesCosts,
            Session session,
            TypeProvider types);