ChangeSet (LocalHistoryFacade facade, String changeSetName, Change... changes) { facade.beginChangeSet(); for (Change each : changes) { if (each instanceof StructuralChange) { facade.addChangeInTests((StructuralChange)each); } else { facade.putLabelInTests((PutLabelChange)each); } } facade.endChangeSet(changeSetName); return facade.getChangeListInTests().getChangesInTests().get(0); }