protected function getPossibleViewFiles(string $name): array
    {
        return \array_map(static function ($extension) use ($name) {
            return [
                'extension' => $extension,
                'file'      => \str_replace('.', \DIRECTORY_SEPARATOR, $name) . '.' . $extension,
            ];
        }, self::$extensions);
    }