void () { configure(); myFixture.assertPreferredCompletionItems(0, "private", "protected", "public", "public void run"); var item = getLookup().getItems().get(3); var p = renderElement(item); assertEquals("public void run", p.getItemText()); assertEquals("(String t, int myInt) {...}", p.getTailText()); assertEquals("Foo", p.getTypeText()); getLookup().setCurrentItem(item); myFixture.type('\n'); checkResult(); }