void () { myFixture.configureByText("a.java", "class Foo { { System.out.pri<caret>x } }"); myFixture.completeBasic(); myFixture.assertPreferredCompletionItems(0, "println", "print"); myFixture.type("\t"); myFixture.checkResult("class Foo { { System.out.println(<caret>); } }"); }