void () { Registry.get("ide.undo.fallback").setValue(true, getTestRootDisposable()); Pair<Editor, Editor> pair = prepareTestUndoFallback(); var barEditor = pair.first; var fooEditor = pair.second; undo(barEditor); // call redo to gather splitted command together redo(barEditor); assertTrue(barEditor.getDocument().getText().contains("FooRenamed")); // 7: undo rename Foo -> FooRenamed to check that changes also applied to Bar.java undo(fooEditor); undo(fooEditor); assertFalse("FooRenamed rename undo doesn't applied to Bar.java", barEditor.getDocument().getText().contains("FooRenamed")); }