presto-spi/src/main/java/io/prestosql/spi/resourcegroups/ResourceGroupId.java/ResourceGroupId/isAncestorOf
class ResourceGroupId:    public boolean isAncestorOf(ResourceGroupId descendant)
    {
        List<String> descendantSegments = descendant.getSegments();
        if (segments.size() >= descendantSegments.size()) {
            return false;
        }
        return descendantSegments.subList(0, segments.size()).equals(segments);
    }