private static function renderOptionValueReadable(RenderReadablePropertyValueEvent $event, $property, $value)
    {
        if (!($options = $property->getOptions())) {
            $options = self::getOptions($event->getEnvironment(), $event->getModel(), $event->getProperty());
            if ($options) {
                $property->setOptions($options);
            }
        }

        if (\array_is_assoc($options)) {
            $event->setRendered($options[$value]);
        }
    }