presto-main/src/main/java/io/prestosql/sql/planner/iterative/Lookup.java/Lookup/resolve
class Lookup:    @Deprecated
    default PlanNode resolve(PlanNode node)
    {
        if (node instanceof GroupReference) {
            return resolveGroup(node).collect(toOptional()).get();
        }
        return node;
    }