docs: public RetryPolicy<R> onFailedAttempt(CheckedConsumer<? extends ExecutionAttemptedEvent<R>> listener) {
      failedAttemptListener = EventListener.ofAttempt(Assert.notNull(listener, "listener"));
      return this;
    }