code: public function prepareFilter($intFilterSettings, $arrFilterUrl)
      {
          // @codingStandardsIgnoreStart
          @trigger_error(
              'Method "' . __METHOD__ . '" is deprecated and will get removed in MetaModels 3.0. ' .
              'Use the "metamodels.filter_setting_factory" service instead.',
              E_USER_DEPRECATED
          );
          // @codingStandardsIgnoreEnd
  
          $objFilter = $this->getEmptyFilter();
          if ($intFilterSettings) {
              $objFilterSettings = $this->getServiceContainer()->getFilterFactory()->createCollection($intFilterSettings);
              $objFilterSettings->addRules($objFilter, $arrFilterUrl);
          }
          return $objFilter;
      }
docs: {@inheritdoc}