public static OptionalInt swallowExceptions(final IntSupplier supplier) {
        try {
            return OptionalInt.of(supplier.getAsInt());
        } catch (Exception e) {
            LOGGER.debug("Error swallowed", e);
            return OptionalInt.empty();
        }
    }
Return the value supplied by supplier. Any exceptions will be swallowed and logged to debug only.
Useful for getting values for logging that may throw.

@return The supplied value or an empty optional if an exception is thrown and swallowed.
stroom-util/src/main/java/stroom/util/logging/LogUtil.java