public void addOrRemove(Key<? extends BeforeRunTask<?>> providerId, boolean add) {
    TaskButton taskButton = ContainerUtil.find(myTags, button -> button.myProvider.getId() == providerId);
    if (add) {
      if (taskButton == null) {
        createTask(null, ContainerUtil.find(getProviders(), provider -> providerId == provider.getId()));
      }
    }
    else if (taskButton != null) {
      myTags.remove(taskButton);
    }
  }
public void addOrRemove(Key<? extends BeforeRunTask<?>> providerId, boolean add)