protected function resetSearchGroupChoices(array &$filteredChoices, $group, array $choices)
    {
        foreach ($choices as $key => $choice) {
            list($id, $label) = $this->getIdAndLabel($key, $choice);

            if (false !== stripos($label, $this->search) && !\in_array($id, $this->getIds())) {
                if (!array_key_exists($group, $filteredChoices)) {
                    $filteredChoices[$group] = [];
                }

                $filteredChoices[$group][$key] = $choice;
            }
        }
    }