public function execute()
 {
     $typeName = $this->typeDescriptor->getTypeName();
     if ($this->rootModuleFile->hasTypeDescriptor($typeName)) {
         $this->previousDescriptor = $this->rootModuleFile->getTypeDescriptor($typeName);
     }
     $this->rootModuleFile->addTypeDescriptor($this->typeDescriptor);
 }
 /**
  * {@inheritdoc}
  */
 public function execute()
 {
     if (!$this->rootModuleFile->hasTypeDescriptor($this->typeName)) {
         return;
     }
     $this->previousDescriptor = $this->rootModuleFile->getTypeDescriptor($this->typeName);
     $this->rootModuleFile->removeTypeDescriptor($this->typeName);
 }