code: public function match(
          ModelInterface $model = null,
          PropertyValueBag $input = null,
          PropertyInterface $property = null,
          LegendInterface $legend = null
      ) {
          if (!$model || !$model->getProperty('attr_id')) {
              return false;
          }
  
          $metaModel = $this->getMetaModel($model);
          $attribute = $metaModel->getAttributeById($model->getProperty('attr_id'));
  
          if (!$attribute) {
              return false;
          }
  
          return $attribute->get('type') === $this->filterType;
      }
docs: {@inheritdoc}