void (@Nullable ChangeListWorker updatedWorker) { myInsideUpdate = false; if (!myWorker.areChangeListsEnabled()) { if (!myCommandQueue.isEmpty()) LOG.warn("Changelists are disabled, commands ignored: " + myCommandQueue); myCommandQueue.clear(); return; } if (updatedWorker != null) { for (ChangeListCommand command : myCommandQueue) { command.apply(updatedWorker); } } for (ChangeListCommand command : myCommandQueue) { myNotificator.callNotify(command); } myCommandQueue.clear(); }