@Override
  public void update(@NotNull AnActionEvent event) {
    super.update(event);
    Presentation presentation = event.getPresentation();
    Project project = getEventProject(event);
    if (project != null && presentation.isEnabled()) {
      presentation.setText(TaskBundle.message("action.edit.text", TaskManager.getManager(project).getActiveTask().getPresentableName()), false);
    }
  }
@Override
  public void update(@NotNull AnActionEvent event)