void (ChangeListWorker worker) { LocalChangeList list = worker.getChangeListByName(myNewDefaultName); if (list == null || list.isDefault()) { myOldDefaultListCopy = null; myNewDefaultListCopy = null; myResult = false; return; } String oldDefaultName = worker.setDefaultList(myNewDefaultName); myOldDefaultListCopy = worker.getChangeListByName(oldDefaultName); myNewDefaultListCopy = worker.getChangeListByName(myNewDefaultName); myResult = oldDefaultName != null; }