public function addAttribute($key, $value)
 {
     if ($this->isNoResolvedType()) {
         return parent::addAttribute($key, $value);
     }
     $this->referencedType = $this->referencedType->addAttribute($key, $value);
     return $this;
 }