presto-main/src/main/java/io/prestosql/sql/planner/iterative/Memo.java/Memo/storeCost
class Memo:    public void storeCost(int group, PlanCostEstimate cost)
    {
        getGroup(group).cost = requireNonNull(cost, "cost is null");
    }