protected function isAllowedProperty($event, $dataDefinitionName, $properties)
    {
        if ($event->getEnvironment()->getDataDefinition()->getName() !== $dataDefinitionName) {
            return false;
        }

        if (!\in_array($event->getPropertyName(), $properties)) {
            return false;
        }

        return true;
    }