void (char c) { myFixture.configureByFile(getTestName(true) + "_before.java"); List<Integer> whereToType = findWhereToType(myFixture.getEditor().getDocument().getImmutableCharSequence()); assertNotNull("Test file must have at least one place where to type!", whereToType); assertFalse("Test file must have at least one place where to type!", whereToType.isEmpty()); for (Integer offset : whereToType) { myFixture.getEditor().getCaretModel().moveToOffset(offset); myFixture.type(c); } myFixture.checkResultByFile(getTestName(true) + "_after.java"); }