public function finderToArrayOfPaths(Finder $finder) : array
    {
        $result = array_map(
            function ($value) {
                /** @var SplFileInfo $value */
                return $value->getRelativePathname();
            },
            iterator_to_array($finder)
        );

        return array_values($result);
    }