void (@NotNull Disposable disposable) { ThreadingAssertions.assertEventDispatchThread(); myAutoUpdateMuted = true; resetAutoUpdateState(); Disposer.register(disposable, () -> { ThreadingAssertions.assertEventDispatchThread(); myAutoUpdateMuted = false; resetAutoUpdateState(); }); }