private function resolveFile($fileName, $pathNames)
    {
        foreach ($pathNames as $pathName) {
            if (file_exists($file = $pathName . DIRECTORY_SEPARATOR . $fileName)) {
                return $file;
            }
        }

        return null;
    }