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