private function findFiles($directory, array $names, array $ignoreNames)
    {
        $finder = new Finder();
        $finder->files()->in($directory);

        foreach ($names as $name) {
            $finder->name($name);
        }

        foreach ($ignoreNames as $name) {
            $finder->notName($name);
        }

        $finder->sortByName();

        return $finder;
    }