private function collectImports(ReflectionClass $class) { $imports = $this->importUse === true ? $this->getUseImports($class) : $this->getPhpBenchImports(); $this->docParser->setImports($imports); }