void () { ListData fallbackList = getDataByName(LocalChangeList.getDefaultName()); if (fallbackList == null) { fallbackList = putNewListData(new ListData(null, LocalChangeList.getDefaultName())); } LocalChangeList oldDefaultList = getDefaultList(); String oldComment = editComment(fallbackList.name, ""); boolean readOnlyChanged = setReadOnly(fallbackList.name, true); boolean dataChanged = editData(fallbackList.name, null); boolean defaultChanged = setDefaultList(fallbackList.name) != null; List<LocalChangeList> removedLists = new ArrayList<>(); for (ListData list : new ArrayList<>(myLists)) { if (list.isDefault) continue; removedLists.add(getChangeListByName(list.name)); removeChangeList(list.name); } LocalChangeListImpl newList = toChangeList(fallbackList); if (!StringUtil.isEmpty(oldComment)) myDelayedNotificator.changeListCommentChanged(newList, oldComment); if (readOnlyChanged) myDelayedNotificator.changeListChanged(newList); if (dataChanged) myDelayedNotificator.changeListDataChanged(newList); if (defaultChanged) myDelayedNotificator.defaultListChanged(oldDefaultList, newList, false); for (LocalChangeList oldList : removedLists) { Collection<Change> movedChanges = oldList.getChanges(); if (!movedChanges.isEmpty()) myDelayedNotificator.changesMoved(movedChanges, oldList, newList); myDelayedNotificator.changeListRemoved(oldList); } }