void () { checkPreferredItems(0, "XFooIntf", "XFoo", "XFooClass"); assertEquals(NormalCompletionTestCase.renderElement(getLookup().getItems().get(0)).getItemTextForeground(), JBColor.foreground()); assertEquals(NormalCompletionTestCase.renderElement(getLookup().getItems().get(1)).getItemTextForeground(), JBColor.RED); assertEquals(NormalCompletionTestCase.renderElement(getLookup().getItems().get(2)).getItemTextForeground(), JBColor.RED); }