List<String> ( @NotNull String command, @NotNull List<@NotNull String> parameters, @NotNull Platform platform ) { List<String> commandLine = new ArrayList<>(parameters.size() + 1); commandLine.add(FileUtilRt.toSystemDependentName(command, platform.fileSeparator)); if (platform != Platform.WINDOWS) { for (String parameter : parameters) { if (isQuoted(parameter, INESCAPABLE_QUOTE)) { // TODO do we need that on non-Windows? M.b. just remove these quotes? -- Eldar parameter = quote(StringUtilRt.unquoteString(parameter, INESCAPABLE_QUOTE), Q); } commandLine.add(parameter); } } else { addToWindowsCommandLine(command, parameters, commandLine); } return commandLine; }