protected function locateTemplate(FileLocatorInterface $locator, TemplateReference $template, array &$templates)
    {
        $templates[$template->getLogicalName()] = $locator->locate($template->getPath());
    }