code: public static <T> Collection<T> findAmongst(Class<T> clazz, Collection<?> instances) {
      return findStreamAmongst(clazz, instances)
        .collect(Collectors.toList());
    }
docs: Find instances of {@code clazz} among the {@code instances}.
  
  @param clazz searched class
  @param instances instances looked at
  @param <T> type of the searched instances
  @return the list of compatible instances