protected function resetSearchChoices()
    {
        $filteredChoices = [];

        foreach ($this->choices as $key => $choice) {
            if (\is_array($choice)) {
                $this->resetSearchGroupChoices($filteredChoices, $key, $choice);
            } else {
                $this->resetSearchSimpleChoices($filteredChoices, $key, $choice);
            }
        }

        return $filteredChoices;
    }