public static <T, R> List<R> execute(boolean inParallel,
                                       @NotNull Collection<T> collection,
                                       @NotNull Function<T, R> method) {
    return inParallel ? executeInParallel(collection, method) : executeSequentially(collection, method);
  }
public static <T, R> List<R> execute(boolean inParallel,
                                       @NotNull Collection<T> collection,
                                       @NotNull Function<T, R> method)