Missed method findRealpathInIncludePath() in Zend\Code\Reflection\FileReflection

Fatal error: Call to undefined method Zend\Code\Reflection\FileReflection::findRealpathInIncludePath() in /home/home/www/vendor/library/Zend/Code/Generator/FileGenerator.php on line 78

This occurs when data is non-existent file

$generator =  new \Zend\Code\Generator\FileGenerator();
$file = $generator->fromReflectedFileName('/home/user/www/not_exists.php');