static @NotNull TagResolver resolver(final @NotNull Iterable<? extends TagResolver> resolvers) {
    // We can break out early and return exact resolvers in the case of a zero/one length array.
    if (resolvers instanceof Collection<?>) {
      final int size = ((Collection<?>) resolvers).size();
      if (size == 0) return empty();
      if (size == 1) return Objects.requireNonNull(resolvers.iterator().next(), "resolvers must not contain null elements");
    }

    return builder().resolvers(resolvers).build();
  }
Constructs a tag resolver capable of resolving from multiple sources.

<p>The last specified resolver takes priority.</p>

<p>The provided iterable is copied. This means changes to the iterable will not reflect in the returned resolver.</p>

@param resolvers the tag resolvers
@return the tag resolver
@since 4.10.0
text-minimessage/src/main/java/net/kyori/adventure/text/minimessage/tag/resolver/TagResolver.java