private static @NotNull List<TagPart> genParts(
    final @NotNull Token token,
    final @NotNull String sourceMessage,
    final TokenParser.@NotNull TagProvider tagProvider
  ) {
    final ArrayList<TagPart> parts = new ArrayList<>();

    if (token.childTokens() != null) {
      for (final Token childToken : token.childTokens()) {
        parts.add(new TagPart(sourceMessage, childToken, tagProvider));
      }
    }

    return parts;
  }
Creates a new element node.

@param parent the parent of this node
@param token the token that created this node
@param sourceMessage the source message
@param tagProvider the tag provider
@since 4.10.0
text-minimessage/src/main/java/net/kyori/adventure/text/minimessage/internal/parser/node/TagNode.java