public static @NotNull Path getResultsDataPath(@NotNull Disposable parentDisposable, @Nullable InspectionsReportConverter reportConverter, @NotNull String outputPath) throws IOException {
    Path resultsDataPath;
    // use default xml converter(if null( or don't store default xml report in tmp dir
    if (reportConverter == null || !reportConverter.useTmpDirForRawData()) {  // and don't use STDOUT stream
      resultsDataPath = Paths.get(outputPath);
      Files.createDirectories(resultsDataPath);
    }
    else {
      File tmpDir = FileUtilRt.createTempDirectory("inspections", "data", false);
      Disposer.register(parentDisposable, () -> FileUtil.delete(tmpDir));
      resultsDataPath = tmpDir.toPath();
    }
    return resultsDataPath;
  }
public static @NotNull Path getResultsDataPath(@NotNull Disposable parentDisposable, @Nullable InspectionsReportConverter reportConverter, @NotNull String outputPath)