private static void makeParamAbsoluteIfRelative(ParamsGroup paramsGroup, int paramIndex, @Nullable File workDirectory) {
    String param = paramsGroup.getParameters().get(paramIndex);
    if (!new File(param).isAbsolute() && workDirectory != null) {
      File paramFile = new File(workDirectory, param);
      if (paramFile.exists()) {
        paramsGroup.getParametersList().set(paramIndex, paramFile.getPath());
      }
    }
  }
private static void makeParamAbsoluteIfRelative(ParamsGroup paramsGroup, int paramIndex, @Nullable File workDirectory)