public void removeTasks(@NotNull Collection<? extends TaskActivationEntry> entries) {
    if (entries.isEmpty()) {
      return;
    }
    final ExternalProjectsStateProvider stateProvider = ExternalProjectsManagerImpl.getInstance(myProject).getStateProvider();
    for (TaskActivationEntry activationEntry : entries) {
      final TaskActivationState taskActivationState =
        stateProvider.getTasksActivation(activationEntry.systemId, activationEntry.projectPath);
      taskActivationState.getTasks(activationEntry.phase).remove(activationEntry.taskName);
    }
    fireTasksChanged();
  }
public void removeTasks(@NotNull Collection<? extends TaskActivationEntry> entries)