public function reflectClass(string $className) : ClassReflection
{
try {
$reflection = $this->classReflector->reflect($className);
return new BetterReflectionClassReflection($reflection, $this->annotationsScanner, $this, $this->typeFactory, $reflection->getFileName() ? $this->importScanner->scanForImports($reflection->getFileName()) : []);
} catch (IdentifierNotFound $exception) {
throw ClassNotFound::named($className);
}
}