void () { boolean old = CodeInsightSettings.getInstance().AUTOCOMPLETE_ON_CODE_COMPLETION; CodeInsightSettings.getInstance().AUTOCOMPLETE_ON_CODE_COMPLETION = false; try { myFixture.configureByText("foo.xml", "<schem<caret>"); myFixture.completeBasic(); myFixture.type('\n'); myFixture.checkResult("<schema xmlns=\"http://www.w3.org/2001/XMLSchema\"<caret>"); } finally { CodeInsightSettings.getInstance().AUTOCOMPLETE_ON_CODE_COMPLETION = old; } }