code: public function canVisit(Criterion $criterion)
      {
          return
              $criterion instanceof Criterion\FieldRelation &&
              (($criterion->operator ?: Operator::IN) === Operator::IN ||
                  $criterion->operator === Operator::CONTAINS);
      }
docs: Check if visitor is applicable to current criterion.
  
  @param Criterion $criterion
  
  @return bool