void (@NotNull Runnable action) { ApplicationManager.getApplication().assertWriteIntentLockAcquired(); if (myAllowMergeGlobalCommands) { action.run(); } myAllowMergeGlobalCommands = true; try { action.run(); } finally { myAllowMergeGlobalCommands = false; } }