void (@NotNull AnActionEvent event) { super.update(event); if (event.getPresentation().isEnabled()) { final Presentation presentation = event.getPresentation(); final LocalTask activeTask = getActiveTask(event); presentation.setEnabled(activeTask != null && activeTask.isIssue() && activeTask.getDescription() != null); if (activeTask == null || !activeTask.isIssue()) { presentation.setTextWithMnemonic(getTemplatePresentation().getTextWithPossibleMnemonic()); } else { presentation.setText(TaskBundle.message("action.show.description.text", StringUtil.escapeMnemonics(activeTask.getPresentableName()))); } } }