void () { configure(); var getter = ContainerUtil.find(myFixture.getLookupElements(), it -> it.getLookupString().equals("public int getField")); var setter = ContainerUtil.find(myFixture.getLookupElements(), it -> it.getLookupString().equals("public void setField")); assertNotNull(myFixture.getLookupElementStrings().toString(), getter); assertNotNull(myFixture.getLookupElementStrings().toString(), setter); var p = renderElement(getter); assertEquals(p.getItemText(), getter.getLookupString()); assertEquals("() {...}", p.getTailText()); assertTrue(p.getTypeText().isEmpty()); p = renderElement(setter); assertEquals(p.getItemText(), setter.getLookupString()); assertEquals("(int field) {...}", p.getTailText()); assertTrue(p.getTypeText().isEmpty()); getLookup().setCurrentItem(getter); myFixture.type('\n'); checkResult(); }