docs: public static <C extends Result> ArrayList<C> filterResults(ResultHierarchy hier, Result r, Class<? super C> restrictionClass) {
      ArrayList<C> res = new ArrayList<>();
      final It<C> it = hier.iterDescendantsSelf(r).filter(restrictionClass);
      it.forEach(res::add);
      return res;
    }