presto-spi/src/main/java/io/prestosql/spi/resourcegroups/ResourceGroupId.java/ResourceGroupId/equals
class ResourceGroupId:    @Override
    public boolean equals(Object o)
    {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        ResourceGroupId that = (ResourceGroupId) o;
        return Objects.equals(segments, that.segments);
    }