protected function addNewClasses(&$pathnameArray, &$nonClassFiles, $excludeVendor = true, PhpClass $phpClassClone) {
        $files = $this->findFiles($excludeVendor);

        foreach ($files as $file) {
            /* @var $file \Symfony\Component\Finder\SplFileInfo */
            $pathname = $file->getPathname();

            if ((!isset($pathnameArray[$pathname]) && !isset($nonClassFiles[$pathname])) || (isset($nonClassFiles[$pathname]) && md5_file($file->getPathname()) !== $nonClassFiles[$pathname])) {
                $phpClass = clone $phpClassClone;
                $fileInfo = $this->parseSplFileInfo($file, $phpClass);
                if (is_object($fileInfo)) {
                    $pathnameArray[$pathname] = $fileInfo;
                } else {
                    $nonClassFiles[$fileInfo['pathname']] = $fileInfo['md5'];
                }
            }
        }
    }