public static void patchCoverageParams(
    @NotNull String interpreterPath,
    @NotNull ParamsGroup coverageParams,
    @Nullable File workDirectory,
    @NotNull PathMapper pathMapper
  ) {
    PyCommandLineStateUtil.remapParameters(interpreterPath, pathMapper, coverageParams, workDirectory);

    int i = 0;
    boolean isWin = RemoteFile.isWindowsPath(interpreterPath);
    for (String param : coverageParams.getParameters()) {
      String omitPrefix = "--omit=";
      if (param.startsWith(omitPrefix)) {
        String path = param.substring(omitPrefix.length());
        coverageParams.getParametersList().set(i++, omitPrefix + RemoteFile.createRemoteFile(pathMapper.convertToRemote(path), isWin).getPath());
      }
    }
  }
public static void patchCoverageParams(
    @NotNull String interpreterPath,
    @NotNull ParamsGroup coverageParams,
    @Nullable File workDirectory,
    @NotNull PathMapper pathMapper
  )