void (@NotNull Consumer<? super ProgressListener> action) { synchronized (myLock) { List<ProgressListener> list = new ArrayList<>(myListeners); ApplicationManager.getApplication().invokeLater(() -> list.forEach(action), o -> myDisposableFlag.isDisposed()); } }