public function getPropertyOptions(GetPropertyOptionsEvent $event)
    {
        if (('file_imageSize' !== $event->getPropertyName())
            || ('tl_metamodel_rendersetting' !== $event->getEnvironment()->getDataDefinition()->getName())
        ) {
            return;
        }

        if (!$sizes = $this->getThemeImageSizes()) {
            return;
        }

        $options                = $event->getOptions();
        $options['image_sizes'] = \array_replace($sizes, (array) $options['image_sizes']);

        $event->setOptions($options);
    }