code: private function getMetaModel(ModelInterface $model)
      {
          $filterSetting = $this->filterFactory->createCollection($model->getProperty('fid'));
  
          return $filterSetting->getMetaModel();
      }
docs: Retrieve the MetaModel attached to the model filter setting.
  
  @param ModelInterface $model The model for which to retrieve the MetaModel.
  
  @return IMetaModel