docs: private static InputStream openStream(URI uri) throws IOException {
      HttpURLConnection connection = HttpURLConnection.class.cast(uri.toURL().openConnection());
      connection.setConnectTimeout(1000 * 2);
      connection.setReadTimeout(1000 * 2);
      connection.setAllowUserInteraction(false);
      connection.setInstanceFollowRedirects(false);
      return connection.getInputStream();
    }