public HtmlChunk toFragment() {
    if (myChunks.isEmpty()) {
      return HtmlChunk.empty();
    }
    if (myChunks.size() == 1) {
      return myChunks.get(0);
    }
    return new HtmlChunk.Fragment(new ArrayList<>(myChunks));
  }
public HtmlChunk toFragment()