presto-spi/src/main/java/io/prestosql/spi/resourcegroups/ResourceGroupId.java/ResourceGroupId/append
class ResourceGroupId:    private static List<String> append(List<String> list, String element)
    {
        List<String> result = new ArrayList<>(list);
        result.add(element);
        return result;
    }