public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults(['choices' => function (Options $options) {
return $options['option']->getValues();
}, 'choice_value' => 'code', 'choice_label' => 'value', 'choice_translation_domain' => false])->setRequired(['option'])->addAllowedTypes('option', [ProductOptionInterface::class]);
}