presto-main/src/main/java/io/prestosql/server/PluginDiscovery.java/PluginDiscovery/writePluginServices
class PluginDiscovery:    public static void writePluginServices(Iterable<String> plugins, File root)
            throws IOException
    {
        Path path = root.toPath().resolve(SERVICES_FILE);
        createDirectories(path.getParent());
        try (Writer out = new OutputStreamWriter(new FileOutputStream(path.toFile()), UTF_8)) {
            for (String plugin : plugins) {
                out.write(plugin + "\n");
            }
        }
    }