presto-main/src/main/java/io/prestosql/sql/planner/iterative/Memo.java/Memo/getCost
class Memo:    public Optional<PlanCostEstimate> getCost(int group)
    {
        return Optional.ofNullable(getGroup(group).cost);
    }