private static @NotNull String buildHtmlText(@NotNull JTable table, int[] rows) {
      HtmlBuilder builder = new HtmlBuilder();
      int columnCount = table.getColumnCount();
      for (int row : rows) {
        HtmlBuilder rowItem = new HtmlBuilder();
        for (int col = 0; col < columnCount; col++) {
          @NonNls String text = getItemAsString(table, row, col);
          HtmlChunk.Element item = new HtmlBuilder().append(text).wrapWith("td");
          rowItem.append(item);
        }
        builder.append(rowItem.wrapWith("tr"));
      }
      return builder.wrapWith("table").wrapWith("body").wrapWith("html").toString();
    }
private static @NotNull String buildHtmlText(@NotNull JTable table, int[] rows)