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