presto-main/src/main/java/io/prestosql/sql/planner/iterative/Memo.java/Memo/getGroup
class Memo:    private Group getGroup(int group)
    {
        checkArgument(groups.containsKey(group), "Invalid group: %s", group);
        return groups.get(group);
    }