private static @NotNull Path getUnzipToDir(@Nullable ProgressIndicator progress,
                                             @NotNull Path targetDir,
                                             boolean unwrapSingleTopLevelFolder) throws IOException {
    if (progress != null) {
      progress.setText(LangBundle.message("progress.text.extracting"));
    }
    return unwrapSingleTopLevelFolder ? Files.createTempDirectory("unzip-dir-") : targetDir;
  }
private static @NotNull Path getUnzipToDir(@Nullable ProgressIndicator progress,
                                             @NotNull Path targetDir,
                                             boolean unwrapSingleTopLevelFolder)