code: private Predicate<Policy<ClientHttpResponse>> skipRetriesIfNeeded(final RequestArguments arguments) {
          return predicate.test(arguments) ?
                  policy -> true :
                  policy -> !(policy instanceof RetryPolicy);
      }
docs: TODO depends on the exception, e.g. pre-request exceptions are fine!