void () { checkPreferredItems(0, "foo", "foo", "foo", "fox"); final List<LookupElement> items = getLookup().getItems(); TestCase.assertEquals(0, ((PsiMethod)items.get(0).getObject()).getParameterList().getParametersCount()); TestCase.assertEquals(1, ((PsiMethod)items.get(1).getObject()).getParameterList().getParametersCount()); TestCase.assertEquals(2, ((PsiMethod)items.get(2).getObject()).getParameterList().getParametersCount()); }