@Nonnull
    public static Optional<Duration> parseSafely(String input) {
        try {
            return Optional.of(parse(input));
        } catch (IllegalArgumentException ignored) {
            return Optional.empty();
        }
    }
Attempts to parse a {@link Duration} and returns the
result as an {@link Optional}-wrapped object.

@param input the input string
@return an Optional Duration
helper/src/main/java/me/lucko/helper/time/DurationParser.java