discoverAndSortHooks

private open fun discoverAndSortHooks(classScanner: ClassScanner, context: ApplicationContext): List<out LifecycleHook>