ic IntentionPreviewInfo.Html addListOption(@NotNull List<@NlsSafe String> updatedList,
                                            @NotNull @Nls String title,
                                            @NotNull Predicate<String> toSelect) {
    int maxToList = Math.min(7, updatedList.size() + 2);
    HtmlChunk select = HtmlChunk.tag("select").attr("multiple", "multiple").attr("size", maxToList)
      .children(ContainerUtil.map2Array(updatedList, HtmlChunk.class, pref -> {
        HtmlChunk.Element chunk = HtmlChunk.tag("option").addText(pref);
        return toSelect.test(pref) ? chunk.attr("selected", "selected") : chunk;
      }));
    HtmlChunk content = new HtmlBuilder().append(title)
      .br().br()
      .append(select)
      .toFragment();
    return new Html(content);
  }
}

ic IntentionPreviewInfo.Html addListOption(@NotNull List<@NlsSafe String> updatedList,
                                            @NotNull @Nls String title,
                                            @NotNull Predicate<String> toSelect) {
 