public static <T> @NotNull Comparator<T> wrapIntoReadAction(@NotNull Comparator<? super T> base) {
    return (e1, e2) -> ReadAction.compute(() -> base.compare(e1, e2));
  }
public static <T> @NotNull Comparator<T> wrapIntoReadAction(@NotNull Comparator<? super T> base)