GroupAction ga = new GroupAction();
for (int i = list.size() - 1; i >= 0; i--) {
Object obj = list.get(i);
if (obj instanceof CodeRow) {
CodeRow cr = (CodeRow) obj;
RemoveInstructionAction ria = new RemoveInstructionAction(cr
.getParentCode(), cr.getInstruction());
ga.add(ria);
} else if (obj instanceof MethodDefRow) {
MethodDefRow mdr = (MethodDefRow) obj;
RemoveMethodAction rma = new RemoveMethodAction(mdr