@Override
  public void update(@NotNull AnActionEvent event) {
    super.update(event);
    if (event.getPresentation().isEnabled()) {
      Presentation presentation = event.getPresentation();
      String url = getIssueUrl(event);
      presentation.setEnabled(url != null);
      Project project = getProject(event);
      if (project == null || !TaskManager.getManager(project).getActiveTask().isIssue()) {
        presentation.setTextWithMnemonic(getTemplatePresentation().getTextWithPossibleMnemonic());
      } else {
        presentation.setText(TaskBundle.message("action.open.in.browser.text",
                                                StringUtil.escapeMnemonics(TaskManager.getManager(project).getActiveTask().getPresentableName())));
      }
    }
  }
@Override
  public void update(@NotNull AnActionEvent event)