public function removeInheritedProperties()
{
$myProperties = [];
if ($this->properties !== null) {
foreach ($this->properties as $name => $property) {
if (!$property->getInherited()) {
$myProperties[$name] = $property;
}
}
}
$this->setProperties($myProperties);
}