String () { if (myEntry == null) return null; final Library library = myEntry.getLibrary(); if (library == null) return null; final String name = library.getName(); if (name != null) { final List<String> invalidUrls = ((LibraryEx)library).getInvalidRootUrls(OrderRootType.CLASSES); if (!invalidUrls.isEmpty()) { return JavaUiBundle.message("project.roots.tooltip.library.has.broken.paths", name, invalidUrls.size()); } } final List<@NlsSafe String> descriptions = LibraryPresentationManager.getInstance().getDescriptions(library, myContext); if (descriptions.isEmpty()) return null; final HtmlBuilder builder = new HtmlBuilder().appendWithSeparators(HtmlChunk.br(), ContainerUtil.map(descriptions, HtmlChunk::text)); return builder.wrapWithHtmlBody().toString(); }