void () { UndoManagerImpl undoManager = getUndoManager(); FileEditor fileEditor = undoManager.getEditorProvider().getCurrentEditor(getProject()); assertTrue(undoManager.isUndoAvailable(fileEditor)); undoManager.undo(fileEditor); }