void () { configure(); myFixture.assertPreferredCompletionItems(0, "FIELD1", "FIELD2", "FIELD3", "FIELD4"); var items = myFixture.getLookup().getItems(); assertEquals(Arrays.asList("( \"x\")", "(\"y\") {...}", null, " ( = 42)"), ContainerUtil.map(items, item -> renderElement(item).getTailText())); assertTrue(renderElement(items.get(3)).getTailFragments().get(0).isItalic()); }