protected function includeRest(array $list)
    {
        $otherItemsIndex = false;
        if ($this->restKey) {
            $otherItemsIndex = array_search($this->restKey, $this->priorities);
        }
        if ($otherItemsIndex !== false) {
            array_splice($this->priorities, $otherItemsIndex, 1, $list);
        } else {
            // Otherwise just jam them on the end
            $this->priorities = array_merge($this->priorities, $list);
        }
    }