void () { TextEditor fileEditor = TextEditorProvider.getInstance().getTextEditor(myFixture.getEditor()); UndoManager.getInstance(getProject()).undo(fileEditor); myFixture.checkResultByFile(getTestName(true) + "_afterUndo.java"); }