void (@NotNull Disposable parentDisposable) { setUpdateByTimerEnabled(false); myDisableCount.incrementAndGet(); ThreadingAssertions.assertEventDispatchThread(); Disposer.register(parentDisposable, () -> { if (myDisableCount.decrementAndGet() == 0) { setUpdateByTimerEnabled(true); } }); }