 static long copyStreamContent(@Nullable ProgressIndicator indicator,
                                       @NotNull InputStream inputStream,
                                       @NotNull OutputStream outputStream,
                                       long expectedContentLength) throws IOException, ProcessCanceledException {
    return copyStreamContent(indicator, inputStream, outputStream, expectedContentLength, false);
  }

  /*
 static long copyStreamContent(@Nullable ProgressIndicator indicator,
                                       @NotNull InputStream inputStream,
                                       @NotNull OutputStream outputStream,
                                       long expectedContentLength) throw