code: public static void close(@Nullable Object object) throws IOException {
  		if (object instanceof Closeable) {
  			((Closeable) object).close();
  		}
  	}
docs: Closes a potential {@linkplain Closeable}.
  <p>
  An {@linkplain IOException} caused by {@linkplain Closeable#close()} is forwarded to the caller.
  
  @param object the object to check and close.
  @throws IOException if {@link Closeable#close()} fails.