docs: public static HtmlTagNode getNodeAsHtmlTagNode(SoyNode node, boolean openTag) {
      SoyNode.Kind tagKind =
          openTag ? SoyNode.Kind.HTML_OPEN_TAG_NODE : SoyNode.Kind.HTML_CLOSE_TAG_NODE;
      if (node.getKind() == tagKind) {
        return (HtmlTagNode) node;
      }
      // In a msg tag it will be a placeholder, wrapping a MsgHtmlTagNode wrapping the HtmlTagNode.
      if (node.getKind() == Kind.MSG_PLACEHOLDER_NODE) {
        MsgPlaceholderNode placeholderNode = (MsgPlaceholderNode) node;
        if (placeholderNode.numChildren() == 1
            && placeholderNode.getChild(0).getKind() == Kind.MSG_HTML_TAG_NODE) {
          MsgHtmlTagNode msgHtmlTagNode = (MsgHtmlTagNode) placeholderNode.getChild(0);
          if (msgHtmlTagNode.numChildren() == 1 && msgHtmlTagNode.getChild(0).getKind() == tagKind) {
            return (HtmlTagNode) msgHtmlTagNode.getChild(0);
          }
        }
      }
      return null;
    }