docs: public static boolean close(final Object stream) {
        boolean success;
  
        if (stream instanceof InputStream) {
           success = close((InputStream) stream);
        } else if (stream instanceof OutputStream) {
           success = close((OutputStream) stream);
        } else {
           throw new IllegalArgumentException
                 ("stream is not an InputStream or OutputStream");
        }
  
        return success;
     }