void () { ((StatisticsManagerImpl)StatisticsManager.getInstance()).enableStatistics(myFixture.getTestRootDisposable()); configureByTestName(); myFixture.assertPreferredCompletionItems(0, "test1", "test2"); myFixture.getLookup().setCurrentItem(myFixture.getLookupElements()[1]); myFixture.type("\n2\n"); checkResult(); myFixture.type(";\ntes"); myFixture.completeBasic(); myFixture.assertPreferredCompletionItems(0, "test2", "test1"); }