protected function createViewFinder(FileViewFinder $finder, array $paths = [])
    {
        $new = new FileViewFinder(app('files'), $paths, $finder->getExtensions());

        foreach ($finder->getHints() as $namespace => $hints) {
            $new->addNamespace($namespace, $hints);
        }

        return $new;
    }