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