public static void copy(@NotNull InputStream inputStream, int maxSize, @NotNull OutputStream outputStream) throws IOException {
    copy(inputStream, (long)maxSize, outputStream);
  }
public static void copy(@NotNull InputStream inputStream, int maxSize, @NotNull OutputStream outputStream)