lib/Query/Location/CriterionVisitor/Location/PriorityIn.php
public function canVisit(Criterion $criterion)
    {
        return
            $criterion instanceof Criterion\Location\Priority &&
            (
                ($criterion->operator ?: Operator::IN) === Operator::IN ||
                $criterion->operator === Operator::EQ
            );
    }
public function canVisit(Criterion $criterion)
    {
        return
            $criterion instanceof Criterion\Location\Priority &&
            (
                ($criterion->operator ?: Operator::IN) === Operator::IN ||
                $criterion->operator === Operator::EQ
            );
    }
Check if visitor is applicable to current criterion.

@param \eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion

@return bool