public function fillIndex($index)
    {
        /** @param Command $value */
        $map = function ($value) use ($index) {
            if ($value->getIndex() === null) {
                $value->index($index);
            }
        };

        array_map($map, $this->commands);

        return $this;
    }