class IOUtils {

    public static <T extends AutoCloseable, E extends Throwable> void close( BiFunction<String,Throwable,E> constructor, Collection<T> closeables ) throws E
    {
        close( constructor, closeables.toArray( new AutoCloseable[0] ) );
    }

    private  IOUtils();

}