void () { EditorActionHandler actionHandler = new CodeBlockEndAction().getHandler(); actionHandler.execute(myFixture.getEditor(), myFixture.getEditor().getCaretModel().getPrimaryCaret(), ((EditorEx)myFixture.getEditor()).getDataContext()); }