/**
* @param string $file path to a file to parse
* @return \PhpParser\Node[]
*/
public function parseFile(string $file) : array
{
if (!isset($this->cachedNodesByFile[$file])) {
$this->cachedNodesByFile[$file] = $this->originalParser->parseFile($file);
}
return $this->cachedNodesByFile[$file];
}