protected function doFileSearch()
    {
        if (empty($this->searchLocations)) {
            throw new \RuntimeException(
                'No search locations have been defined.'
            );
        }

        return (new Finder())
            ->name($this->searchPattern)
            ->in($this->searchLocations)
            ->depth($this->searchDepth)
            ->files();
    }