void execute(Runnable runnable) {
        try {
            runnable.run();
        } catch (Throwable t) {
            rethrowIfUnrecoverable(t);
            add(t);
        }
    }
@Test
    void rethrows_unrecoverable() {
        assertThrows(OutOfMemoryError.class, () -> collector.execute(() -> {
            throw new OutOfMemoryError();
        }));
    }