@SuppressWarnings("unchecked")
  private static <T extends Task<?> & OnStartup> List<T> startupTasks(List<Task<?>> tasks) {
    return tasks.stream()
        .filter(shouldBeStarted)
        .map(task -> (T) task)
        .collect(Collectors.toList());
  }
Will typically be created if Spring Boot Actuator is not on the classpath.
db-scheduler-boot-starter/src/main/java/com/github/kagkarlsson/scheduler/boot/autoconfigure/DbSchedulerAutoConfiguration.java