private static @NotNull LinkLabel<AnAction> createAction(@NotNull Notification notification, @NotNull AnAction action) {
    Presentation presentation = action.getTemplatePresentation();
    @SuppressWarnings("DialogTitleCapitalization") String text =
      presentation.getText();  // action templates are unfit for the context :/
    return new LinkLabel<>(text, presentation.getIcon(), (link, _action) -> {
      NotificationCollector.getInstance()
        .logNotificationActionInvoked(null, notification, _action, NotificationCollector.NotificationPlace.BALLOON);
      Notification.fire(notification, _action, DataManager.getInstance().getDataContext(link));
    }, action) {
      {
        Notification.setDataProvider(notification, this);
      }
      @Override
      protected Color getTextColor() {
        return NotificationsUtil.getLinkButtonForeground();
      }
    };
  }
private static @NotNull LinkLabel<AnAction> createAction(@NotNull Notification notification, @NotNull AnAction action)