docs: public boolean hasText() {
          for (Node child: childNodes) {
              if (child instanceof TextNode) {
                  TextNode textNode = (TextNode) child;
                  if (!textNode.isBlank())
                      return true;
              } else if (child instanceof Element) {
                  Element el = (Element) child;
                  if (el.hasText())
                      return true;
              }
          }
          return false;
      }