code: @Override @DefinedBy(Api.COMPILER_TREE)
      public Void visitText(TextTree tree, Void ignore) {
          if (hasNonWhitespace(tree)) {
              checkAllowsText(tree);
              markEnclosingTag(Flag.HAS_TEXT);
          }
          return null;
      }
docs: <editor-fold defaultstate="collapsed" desc="Text and entities.">