docs: @SuppressWarnings("unchecked")
    public RetryPolicy<R> abortOn(Class<? extends Throwable>... failures) {
      Assert.notNull(failures, "failures");
      Assert.isTrue(failures.length > 0, "Failures cannot be empty");
      return abortOn(Arrays.asList(failures));
    }