HtmlChunk (List<String> invalidClasses, String rootName, @NlsSafe String libraryName) { HtmlBuilder buffer = new HtmlBuilder(); final String name = StringUtil.escapeXmlEntities(libraryName); final HtmlChunk.Element link = HtmlChunk.link("http://library/" + name, name); buffer.appendRaw( JavaUiBundle.message("library.project.structure.invalid.roots.description", link, rootName, invalidClasses.size() ) ); for (String url : invalidClasses) { buffer.br().nbsp(2); buffer.append(PathUtil.toPresentableUrl(url)); } return buffer.toFragment(); }