protected function traverse($content, array $nodeVisitors = []) {
        $nodes = $this->phpParser->parse($content);

        $traverser = new NodeTraverser;
        $traverser->addVisitor(new NameResolver());

        foreach ($nodeVisitors as $nodeVisitor) {
            $traverser->addVisitor($nodeVisitor);
        }

        $traverser->traverse($nodes);
    }