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