void () { myFixture.addClass(""" package foo; public class Foo { public static void foo() {} public static void bar() {} } """); configure(); myFixture.assertPreferredCompletionItems(0, "bar", "bar"); assertEquals("Foo.bar", renderElement(myFixture.getLookupElements()[1]).getItemText()); myFixture.getLookup().setCurrentItem(myFixture.getLookupElements()[1]); myFixture.type('\t'); checkResult(); }