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