@ApiStatus.Internal
  public void addRunOnCommit(@NotNull Document document, @NotNull Runnable action) {
    List<Runnable> actions = myActionsAfterCommit.computeIfAbsent(document, __ -> ContainerUtil.createConcurrentList());
    actions.add(ThreadContext.captureThreadContext(action));
  }
@ApiStatus.Internal
  public void addRunOnCommit(@NotNull Document document, @NotNull Runnable action)