public function parse(PhpClass $phpClass, SplFileInfo $fileInfo) {
        try {
            $this->nodeVisitor->setPhpClass($phpClass);

            $this->traverse($fileInfo->getContents(), [$this->nodeVisitor]);

            $phpClass->setFile($fileInfo);

            $phpClass->setLastModified((new \DateTime())->setTimestamp($fileInfo->getMTime()));
        } catch (\Exception $e) {
            return false;
        }

        if($phpClass->isValid()){
            return $phpClass;
        }

        return false;
    }