protected function addInheritanceAttributes(StructAttributeContainer $attributes)
{
if ($this->getInheritance() != '' && ($model = $this->getInheritanceStruct()) instanceof Struct) {
while ($model->getIsStruct()) {
foreach ($model->getAttributes() as $attribute) {
$attributes->add($attribute);
}
$model = $this->getGenerator()->getStruct($model->getInheritance());
}
}
}