public static @NotNull ThrowableConsumer<OutputStream, IOException> redirectStream(@NotNull InputStream stream) {
    return outputStream -> {
      try (outputStream) {
        FileUtil.copy(stream, outputStream);
      }
    };
  }
public static @NotNull ThrowableConsumer<OutputStream, IOException> redirectStream(@NotNull InputStream stream)