private static <T, R> List<R> executeSequentially(@NotNull Collection<T> collection,
                                                    @NotNull Function<T, R> method) {
    List<R> result = new ArrayList<>();

    for (T item : collection) {
      result.add(method.apply(item));
    }

    return result;
  }
private static <T, R> List<R> executeSequentially(@NotNull Collection<T> collection,
                                                    @NotNull Function<T, R> method)