private static void runAndMeasure(@NotNull List<? super Pair<Integer, String>> results,
                                    @NotNull String actionName,
                                    @NotNull LongSupplier runnable) {
    ReadAction.run(() -> {
      long elapsed = runnable.getAsLong();
      if (elapsed > 0) {
        results.add(Pair.create((int)elapsed, actionName));
      }
    });
  }
private static void runAndMeasure(@NotNull List<? super Pair<Integer, String>> results,
                                    @NotNull String actionName,
                                    @NotNull LongSupplier runnable)