void (HyperlinkEvent e) { if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) { AnAction action = actionListeners.get(e.getDescription()); if (action != null) { Object source = e.getSource(); DataContext context = source instanceof Component ? DataManager.getInstance().getDataContext((Component)source) : null; if (source instanceof JComponent component) { Notification.setDataProvider(notification, component); } Notification.fire(notification, action, context); NotificationCollector.getInstance() .logNotificationActionInvoked(project, notification, action, NotificationCollector.NotificationPlace.TOOL_WINDOW); return; } } if (notificationListener != null) { notificationListener.hyperlinkUpdate(notification, e); } }