private void executeInsideCommit(@NotNull Runnable runnable) {
    Integer counter = myIsCommitInProgress.get();
    myIsCommitInProgress.set(counter == null ? 1 : counter + 1);
    try {
      runnable.run();
    }
    finally {
      myIsCommitInProgress.set(counter);
    }
  }
private void executeInsideCommit(@NotNull Runnable runnable)