void () { myFixture.configureByText("a.java", "class C { int aaaA; { <caret> }}"); createTemplate("aaa-bbb"); type("aaa"); assertOrderedEquals(myFixture.getLookupElementStrings(), "aaaA", "aaa-bbb"); type("-"); assertOrderedEquals(myFixture.getLookupElementStrings(), "aaa-bbb"); myFixture.configureByText("a.java", "class C { { <caret> }}"); type("aaa"); assertOrderedEquals(myFixture.getLookupElementStrings(), "aaa-bbb"); type("-"); assertOrderedEquals(myFixture.getLookupElementStrings(), "aaa-bbb"); }