private static void runBatchCaretOperation(@NotNull List<? extends Editor> editors, int startIndex, @NotNull Runnable runnable) {
    if (startIndex >= editors.size()) {
      runnable.run();
      return;
    }
    editors.get(startIndex).getCaretModel().runBatchCaretOperation(() -> {
      runBatchCaretOperation(editors, startIndex + 1, runnable);
    });
  }
private static void runBatchCaretOperation(@NotNull List<? extends Editor> editors, int startIndex, @NotNull Runnable runnable)