Icon (List<? extends Notification> notifications) { for (Notification notification : notifications) { if (notification.isSuggestionType() && notification.isImportantSuggestion() || notification.getType() == NotificationType.ERROR) { if (ExperimentalUI.isNewUI()) return NOTIFICATION_ICON.getErrorIcon(); return AllIcons.Toolwindows.NotificationsNewImportant; } } if (ExperimentalUI.isNewUI()) return NOTIFICATION_ICON.getInfoIcon(!notifications.isEmpty()); return notifications.isEmpty() ? AllIcons.Toolwindows.Notifications : AllIcons.Toolwindows.NotificationsNew; }