'Rewrite all matching setitems as static_setitems.'

def apply(self):

    new_block = self.block.copy()
    new_block.clear()
    for inst in self.block.body:
        if (inst in self.setitems):
            const = self.setitems[inst]
            new_inst = ir.StaticSetItem(inst.target, const, inst.index, inst.value, inst.loc)
            new_block.append(new_inst)
        else:
            new_block.append(inst)
    return new_block
