private function markEditErrors(
        PropertyInterface $editProperty,
        PropertyInterface $selectProperty,
        PropertyValueBagInterface $propertyValuesBag
    ) {
        if (($editErrors = $propertyValuesBag->getInvalidPropertyErrors())
            && \array_key_exists($selectProperty->getName(), $editErrors)
        ) {
            $propertyValuesBag->markPropertyValueAsInvalid(
                $editProperty->getName(),
                $editErrors[$selectProperty->getName()]
            );
        }
    }