void (@NotNull AnActionEvent e) { if (myNotification == null) { return; } Notification.get(e); if (MessageDialogBuilder.yesNo("AnAction", getTemplatePresentation().getText() + " Expire?").guessWindowAndAsk()) { myNotification.expire(); myNotification = null; } }