boolean (final PsiMember candidate, final List<JavaResolveResult> results) { if (!results.isEmpty()) { for (ListIterator<JavaResolveResult> i = results.listIterator(results.size()); i.hasPrevious(); ) { final Domination domination = dominates(candidate, (PsiMember)i.previous().getElement()); if (domination == Domination.DOMINATED_BY) { return true; } else if (domination == Domination.DOMINATES) { i.remove(); } } } return false; }