void (String completeBefore, String expectedResult, char c) { configureFromFileText("a.java", completeBefore); TypedAction.getInstance().actionPerformed(getEditor(), c, ((EditorEx)getEditor()).getDataContext()); checkResultByText(expectedResult); }