def apply(self):
        """
        Rewrite all matching setitems as static_setitems where the index
        is the literal value of the string.
        """
        new_block = ir.Block(self.block.scope, self.block.loc)
        for inst in self.block.body:
            if isinstance(inst, ir.SetItem):
                if inst in self.setitems:
                    const, lit_val = self.setitems[inst]
                    new_inst = ir.StaticSetItem(target=inst.target,
                                                index=lit_val,
                                                index_var=inst.index,
                                                value=inst.value,
                                                loc=inst.loc)
                    self.calltypes[new_inst] = self.calltypes[inst]
                    inst = new_inst
            new_block.append(inst)
        return new_block

        Rewrite all matching setitems as static_setitems where the index
        is the literal value of the string.
        
numba/core/rewrites/static_getitem.py