static <T extends Response> RetryRuleWithContentBuilder<T> builder(Iterable<HttpMethod> methods) {
        requireNonNull(methods, "methods");
        checkArgument(!Iterables.isEmpty(methods), "methods can't be empty.");
        final ImmutableSet<HttpMethod> httpMethods = Sets.immutableEnumSet(methods);
        return builder((ctx, headers) -> httpMethods.contains(headers.method()));
    }
Returns a newly created {@link RetryRuleWithContentBuilder} with the specified {@link HttpMethod}s.
core/src/main/java/com/linecorp/armeria/client/retry/RetryRuleWithContent.java