public static void rethrowIfUnrecoverable(Throwable exception) {
        if (exception instanceof OutOfMemoryError) {
            ExceptionUtils.throwAsUncheckedException(exception);
        }
    }
@Test
    void ignoresThrowable() {
        assertDoesNotThrow(() -> rethrowIfUnrecoverable(new Throwable()));
    }