void (final ChangeList list, final String oldName) { if (Objects.equals(list.getName(), oldName)) { return; } if (LocalChangeList.getDefaultName().equals(list.getName())) { changeListRemoved(list); return; } addToChangeList(list.getName(), list.getChanges()); }