void () { myFixture.configureByFile(getTestName(true) + "_before.java"); myFixture.type('\\'); PsiDocumentManager.getInstance(getProject()).commitAllDocuments(); // emulates background commit after typing first character myFixture.type('\\'); myFixture.checkResultByFile(getTestName(true) + "_after.java"); }