public void batchUnrelate(boolean notifyChanges) {
   NonRootModelElement inst = null;
   // R518
   // O_OBJ
   inst = ModelClass;
   unrelateAcrossR518From(ModelClass, notifyChanges);
   if (inst != null) {
     inst.removeRef();
   }
   // R517
   // SM_SM
   inst = IsSupertypeStateMachine;
   unrelateAcrossR517From(IsSupertypeStateMachine, notifyChanges);
   if (inst != null) {
     inst.removeRef();
   }
 }
 public void unrelateAcrossR517From(StateMachine_c target) {
   unrelateAcrossR517From(target, true);
 }