public static void remapParameters(
    @NotNull String interpreterPath,
    @NotNull PathMapper pathMapper,
    @Nullable ParamsGroup paramsGroup,
    @Nullable File workDirectory
  ) {
    if (paramsGroup != null) {
      if (!paramsGroup.getParameters().isEmpty()) {
        makeParamAbsoluteIfRelative(paramsGroup, 0, workDirectory);
      }

      int i = 0;
      boolean isWin = RemoteFile.isWindowsPath(interpreterPath);
      for (String param : paramsGroup.getParameters()) {
        if (pathMapper.canReplaceLocal(param)) {
          paramsGroup.getParametersList().set(i++, RemoteFile.createRemoteFile(pathMapper.convertToRemote(param), isWin).getPath());
        }
      }
    }
  }
public static void remapParameters(
    @NotNull String interpreterPath,
    @NotNull PathMapper pathMapper,
    @Nullable ParamsGroup paramsGroup,
    @Nullable File workDirectory
  )