static TagResolver.@NotNull Single resolver(@TagPattern final @NotNull String name, final @NotNull Tag tag) {
    TagInternals.assertValidTagName(name);
    return new SingleResolver(
      name,
      requireNonNull(tag, "tag")
    );
  }
A tag resolver that will resolve a single tag by a case-insensitive key.

@param name the name of the tag to resolve
@param tag the tag logic to return
@return a new tag resolver
@since 4.10.0
text-minimessage/src/main/java/net/kyori/adventure/text/minimessage/tag/resolver/TagResolver.java