private function getTemplatesForBaseFrom($base, $folder, $themeName)
    {
        if (!is_dir($folder)) {
            return [];
        }

        $themeName      = trim($themeName);
        $foundTemplates = Finder::create()->in($folder)->name($base . '*');

        $templates = [];
        foreach ($foundTemplates as $template) {
            /** @var \Symfony\Component\Finder\SplFileInfo $template */
            $templates[$template->getBasename('.' . $template->getExtension())] = [$themeName => $themeName];
        }

        return $templates;
    }