private static void convertTemporaryActionsToPermanent(UndoRedoList<UndoableGroup> each) {
    for (int i = each.size() - 1; i >= 0; i--) {
      UndoableGroup group1 = each.get(i);
      if (!group1.isTemporary()) break;
      if (LOG.isDebugEnabled()) {
        LOG.debug("Converting to permanent: " + group1);
      }
      group1.makePermanent();
    }
  }
private static void convertTemporaryActionsToPermanent(UndoRedoList<UndoableGroup> each)