presto-main/src/main/java/io/prestosql/cost/CachingCostProvider.java/CachingCostProvider/calculateCost
class CachingCostProvider:    private PlanCostEstimate calculateCost(PlanNode node)
    {
        return costCalculator.calculateCost(node, statsProvider, this, session, types);
    }