void (@NotNull ProgressIndicator indicator, @NotNull Runnable runnable) { myProgressesInNonSuspendableSections.compute(indicator, (__, number) -> (number == null ? 0 : number) + 1); try { runnable.run(); } finally { myProgressesInNonSuspendableSections.compute(indicator, (__, number) -> number == null || number <= 1 ? null : number - 1); } }