/**
* @param array $parserOptions
* @param ParserContext $context
*
* @return NodeTraverser
* @throws \GrumPHP\Exception\RuntimeException
*/
public function createForTaskContext(array $parserOptions, ParserContext $context)
{
$this->configurator->registerOptions($parserOptions);
$this->configurator->registerContext($context);
$traverser = new NodeTraverser();
$this->configurator->configure($traverser);
return $traverser;
}