private function inferTypesForInterface(InterfaceC $interface)
 {
     $this->parser->setCurrentClassName($interface->getName());
     $this->parser->setImportedNamespaces($interface->getImportedNamespaces());
     foreach ($interface->getConstants() as $constant) {
         $this->inferTypesForClassConstant($constant->getConstant());
     }
     foreach ($interface->getMethods() as $method) {
         // We do not pass the container here as it does not make sense to
         // check for @inheritdoc on interfaces (methods cannot be overridden).
         $this->inferTypesForMethodOrFunction($method->getMethod());
     }
 }