public <T extends BeforeRunTask<?>> boolean hasEnabledTask(Key<T> providerId) {
    return ContainerUtil.or(getEnabledTasks(), task -> task.getProviderId() == providerId);
  }
public <T extends BeforeRunTask<?>> boolean hasEnabledTask(Key<T> providerId)