void (@NotNull JList<? extends LibraryEditor> list, LibraryEditor value, int index, boolean selected, boolean hasFocus) { if (value == null) { append(JavaUiBundle.message("library.options.panel.existing.library.combobox.label.no.library.selected")); } else if (value instanceof ExistingLibraryEditor) { final Library library = ((ExistingLibraryEditor)value).getLibrary(); final boolean invalid = !((LibraryEx)library).getInvalidRootUrls(OrderRootType.CLASSES).isEmpty(); OrderEntryAppearanceService.getInstance().forLibrary(getProject(), library, invalid).customize(this); } else if (value instanceof NewLibraryEditor) { setIcon(PlatformIcons.LIBRARY_ICON); final String name = value.getName(); append(name != null ? name : JavaUiBundle.message("unnamed.title")); } }