Icon (@NotNull Library library, StructureConfigurableContext context) { LibraryEx libraryEx = (LibraryEx)library; final LibraryKind kind = libraryEx.getKind(); if (kind != null) { return LibraryType.findByKind(kind).getIcon(libraryEx.getProperties()); } final List<Icon> icons = getCustomIcons(library, context); if (icons.size() == 1) { return icons.get(0); } return null; }