public static UncheckedInterruptedException create(final String message,
                                                       final InterruptedException e) {
        LOGGER.debug(() ->
                Objects.requireNonNullElseGet(
                        message,
                        () -> NullSafe.getOrElse(e, Throwable::getMessage, "Interrupted")
                ));
        // Continue to interrupt the thread.
        Thread.currentThread().interrupt();
        return new UncheckedInterruptedException(message, e);
    }
Logs the error to DEBUG using the msgSupplier to provide the log message,
resets the interrupt flag
and returns a new {@link UncheckedInterruptedException} that can be rethrown.
stroom-util/src/main/java/stroom/util/concurrent/UncheckedInterruptedException.java