void (@NotNull SuspendContextImpl suspendContext) { if (dialog.isDisposed()) { return; } EvaluationContextImpl evaluationContext = new EvaluationContextImpl(suspendContext, suspendContext.getFrameProxy()); MemoryAgent memoryAgent = MemoryAgent.get(evaluationContext); Disposer.register(dialog.getDisposable(), () -> memoryAgent.cancelAction()); memoryAgent.setProgressIndicator(dialog.createProgressIndicator()); }