protected static function getOptions($environment, $model, $property)
    {
        $event = new GetPropertyOptionsEvent($environment, $model);
        $event->setPropertyName($property->getName());
        $event->setOptions($property->getOptions());

        $environment->getEventDispatcher()->dispatch($event::NAME, $event);

        return $event->getOptions();
    }