List<Change> (@NotNull String name) { if (!assertChangeListsEnabled()) return null; ListData removedList = getDataByName(name); if (removedList == null) return null; if (removedList.isDefault) { LOG.error("Cannot remove default changelist"); return null; } List<Change> movedChanges = new ArrayList<>(); myChangeMappings.replaceAll((change, list) -> { if (list == removedList) { movedChanges.add(change); return myDefault; } return list; }); fireChangeListRemoved(removedList.id); myReadOnlyChangesCache = null; myLists.remove(removedList); if (LOG.isDebugEnabled()) { LOG.debug(String.format("[removeChangeList %s] name: %s id: %s", myMainWorker ? "" : "- updater", name, removedList.id)); } return movedChanges; }