private function getAllowedQueue()
{
return array_filter($this->queue, function (TemplateGeneratorInterface $generator) {
if ($generator instanceof ConditionalTemplateGeneratorInterface) {
return $generator->isAllowed();
} else {
return true;
}
});
}