protected function addState(StateInterface $state)
{
if ($this->targetCollection instanceof StateCollection) {
$this->targetCollection->addState($state);
} else {
throw new \InvalidArgumentException('TargetCollection has to be a StateCollection. Overwrite this method to implement a different type!');
}
}