private function loadRules(array $ruleIds): Generator
    {
        foreach ($ruleIds as $ruleId) {
            try {
                yield $this->layoutResolverService->loadRule($ruleId);
            } catch (NotFoundException $e) {
                continue;
            }
        }
    }