void (@NotNull ChangeListCommand command) { if (!myWorker.areChangeListsEnabled()) { LOG.warn("Changelists are disabled, command ignored", new Throwable()); return; } if (myInsideUpdate) { // apply command and store it to be applied again when update is finished // notification about this invocation might be sent later if the update is cancelled command.apply(myWorker); myCommandQueue.add(command); } else { // apply and notify immediately command.apply(myWorker); myNotificator.callNotify(command); } }