void (Notification notification, NotificationActionPanel actionPanel) { DropDownAction action = new DropDownAction(notification.getDropDownText(), (link, ignored) -> { NotificationActionPanel parent = (NotificationActionPanel)link.getParent(); DefaultActionGroup group = new DefaultActionGroup(); for (LinkLabel<AnAction> actionLink : parent.actionLinks) { if (!actionLink.isVisible()) { group.add(actionLink.getLinkData()); } } showPopup(notification, link, group, actionPanel.popupAlarm); }); Notification.setDataProvider(notification, action); action.setVisible(false); actionPanel.addGroupedActionsLink(action); }