void (final SMTestProxy.SMRootTestProxy root, TestConsoleProperties consoleProperties, Disposable parentDisposable) { final RunProfile configuration = consoleProperties.getConfiguration(); if (configuration instanceof RunConfiguration && !(consoleProperties instanceof ImportedTestConsoleProperties) && !isDisposed()) { final MySaveHistoryTask backgroundable = new MySaveHistoryTask(consoleProperties, root, (RunConfiguration)configuration, myHistoryFileName); Disposer.register(parentDisposable, new Disposable() { @Override public void dispose() { backgroundable.dispose(); } }); ProgressManager.getInstance().run(backgroundable); } }