public static function packageInKernel(PackageEvent $event)
    {
        self::addJobByOperationType(
            $event->getOperation(),
            function ($package) {
                return new AddKernel($package);
            },
            function ($package) {
                return new RemoveKernel($package);
            }
        );
    }