protected function mapRequestDataToElementCollection($data, ElementCollection $children)
    {
        $children->forAll(function (ElementInterface $element) use ($data) {
            $propertyPath = $this->getPropertyPathAsIndex($element);
            if (array_key_exists($element->getName(), $data)) {
                $values = $this->propertyAccessor->getValue($data, $propertyPath);
                $this->mapRequestDataToElement($values, $element);
            }
        });
    }