void () { Registry.get("ide.undo.fallback").setValue(true, getTestRootDisposable()); Pair<Editor, Editor> pair = prepareTestUndoFallback(); var barEditor = pair.first; var fooEditor = pair.second; undo(barEditor); assertFalse("Bar.java doesn't remove rename from Foo.java", barEditor.getDocument().getText().contains("FooRenamed")); assertTrue("Foo.java doesn't contains last rename result", fooEditor.getDocument().getText().contains("FooRenamed")); }