void () { for (int i = 0; i < MORE_THEN_LOCAL_LIMIT; i++) { doAnyGlobalChanges(); } for (int i = 0; i < UndoManagerImpl.getGlobalUndoLimit(); i++) { undoFirstEditor(); } assertGlobalUndoNotAvailable(); }