private static @NotNull @NlsSafe String toHtml(@NotNull List<? extends HtmlChunk> chunks) {
    List<HtmlChunk> newChunks = new ArrayList<>();
    for (Iterator<? extends HtmlChunk> iterator = chunks.iterator(); iterator.hasNext(); ) {
      newChunks.add(iterator.next());
      if (iterator.hasNext()) {
        newChunks.add(HtmlChunk.nbsp());
      }
    }

    return HtmlChunk.html().children(newChunks).toString();
  }
private static @NotNull @NlsSafe String toHtml(@NotNull List<? extends HtmlChunk> chunks)