void (final List<JavaResolveResult> resultList) { if (resultList.isEmpty()) return; for (ListIterator<JavaResolveResult> i = resultList.listIterator(resultList.size()); i.hasPrevious(); ) { if (!i.previous().isValidResult()) i.remove(); } }