void () { checkPreferredItems(0, "StringBuffer", "String", "Serializable", "SomeInterface", "SomeInterface", "SomeOtherClass"); assertEquals("SomeInterface<String>", NormalCompletionTestCase.renderElement(myFixture.getLookupElements()[3]).getItemText()); assertEquals("SomeInterface", NormalCompletionTestCase.renderElement(myFixture.getLookupElements()[4]).getItemText()); }