void (final @NlsContexts.ProgressText String text) { myUpdateQueue.queue(new Update("Text") { @Override public void run() { DebuggerInvocationUtil.invokeLater(getProject(), () -> { if (!myProgressWindow.isCanceled() && myProgressWindow.isRunning()) { myProgressWindow.setText(text); } }, myProgressWindow.getModalityState()); } }); }