void () { configure(); // Format.Field, DateFormat.Field, NumberFormat.Field, etc. classes are suggested first myFixture.assertPreferredCompletionItems(5, "Field", "Field", "Field", "Field", "Field", "FIELD1", "FIELD2", "FIELD3", "FIELD4"); var fieldItems = myFixture.getLookup().getItems().subList(5, 9); assertEquals(Arrays.asList("( \"x\") in E", "(\"y\") {...} in E", null, " ( = 42) in E"), ContainerUtil.map(fieldItems, item -> renderElement(item).getTailText())); assertTrue(renderElement(fieldItems.get(3)).getTailFragments().get(0).isItalic()); assertFalse(renderElement(fieldItems.get(3)).getTailFragments().get(1).isItalic()); }