void (@NotNull Disposable parentDisposable) { if (!ApplicationManager.getApplication().isUnitTestMode()) { throw new IllegalArgumentException("Can only be used in tests"); } forceEnable = true; Disposer.register(parentDisposable, () -> forceEnable = false); }