@Override
  public void removeTask(@NotNull LocalTask task) {
    if (task.isDefault()) {
      return;
    }

    if (myActiveTask.equals(task)) {
      activateTask(myTasks.get(LocalTaskImpl.DEFAULT_TASK_ID), true);
    }
    myTasks.remove(task.getId());
    myDispatcher.getMulticaster().taskRemoved(task);
    WorkingContextManager.getInstance(myProject).removeContext(task);
  }
@Override
  public void removeTask(@NotNull LocalTask task)