/**
  * @param TES5BasicType $scriptType
  * @throws ConversionException
  */
 public function setNativeType(TES5BasicType $scriptType)
 {
     if (!$this->inheritanceAnalyzer->isExtending($scriptType, $this->scriptType->getNativeType())) {
         throw new ConversionException("Cannot set script type to non-extending type - current native type " . $this->scriptType->getNativeType()->value() . ", new type " . $scriptType->value());
     }
     $this->scriptType->setNativeType($scriptType->getNativeType());
 }