void (@NotNull String interpreterPath, @NotNull PathMapper pathMapper, @Nullable ParamsGroup paramsGroup, @Nullable File workDirectory) { if (paramsGroup != null) { if (paramsGroup.getParameters().size() > 0) { makeParamAbsoluteIfRelative(paramsGroup, 0, workDirectory); } int i = 0; for (String param : paramsGroup.getParameters()) { if (pathMapper.canReplaceLocal(param)) { paramsGroup.getParametersList().set(i, RemoteFile.detectSystemByPath(interpreterPath). createRemoteFile(pathMapper.convertToRemote(param)).getPath()); } i++; } } }