protected function getLabelText(TranslatorInterface $translator, ModelInterface $model)
    {
        $type  = $model->getProperty('type');
        $label = $translator->translate('typenames.' . $type, 'tl_metamodel_filtersetting');
        if ($label == 'typenames.' . $type) {
            return $type;
        }
        return $label;
    }