void (@NotNull DocumentReference ref) { for (ClientState state : getAllClientStates()) { ApplicationManager.getApplication().assertWriteIntentLockAcquired(); state.myMerger.invalidateActionsFor(ref); if (state.myCurrentMerger != null) state.myCurrentMerger.invalidateActionsFor(ref); state.myUndoStacksHolder.invalidateActionsFor(ref); state.myRedoStacksHolder.invalidateActionsFor(ref); } }