void (@NotNull final String cs, @NotNull String before, @NotNull String expected) { myFixture.configureByText(FileTypes.PLAIN_TEXT, before); EditorActionManager.getInstance(); final TypedAction typedAction = TypedAction.getInstance(); performAction(myFixture.getProject(), () -> { for (int i = 0, max = cs.length(); i < max; i++) { final char c = cs.charAt(i); typedAction.actionPerformed(myFixture.getEditor(), c, ((EditorEx)myFixture.getEditor()).getDataContext()); } }); myFixture.checkResult(expected); }