code: public static Closeable single(boolean throwIOException, final Collection<Closeable> closeables) {
          return single(throwIOException, closeables.toArray(new Closeable[closeables.size()]));
      }
docs: Create a single Closeable which closes all of the specified closeables
  
  @param throwIOException if true, throw any IOException encountered
  @param closeables       collection of closeables
  
  @return closeable