public static void writeArgumentsFile(@NotNull File argFile,
                                        @NotNull List<String> args,
                                        String lineSeparator,
                                        @NotNull Charset cs) throws IOException {
    try (BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(argFile), cs))) {
      for (String arg : args) {
        writer.write(quoteArg(arg));
        writer.write(lineSeparator);
      }
    }
  }
public static void writeArgumentsFile(@NotNull File argFile,
                                        @NotNull List<String> args,
                                        String lineSeparator,
                                        @NotNull Charset cs)