public function modelToLabel(ModelToLabelEvent $event)
    {
        if (!$this->scopeMatcher->currentScopeIsBackend()) {
            return;
        }

        $model = $event->getModel();
        if (($model->getProviderName() !== 'tl_metamodel_filtersetting')
            || !in_array($event->getModel()->getProperty('type'), $this->getTypes())
        ) {
            return;
        }

        $environment = $event->getEnvironment();

        $event
            ->setLabel($this->getLabelPattern($environment, $model))
            ->setArgs($this->getLabelParameters($environment, $model));
    }