public function remove(ValidatorInterface $validator)
    {
        $index = $this->getIndex($validator);
        if (false !== $index) {
            unset($this->validators[$index]);
            $this->validators = array_values($this->validators);
        }
    }