void (@NotNull @Nls String textAddon, @NotNull Disposable lifetime) { mySubProcessTitles.add(textAddon); updateAllRegisteredProgressWindows(); Disposer.register(lifetime, () -> { if (mySubProcessTitles.remove(textAddon)) { updateAllRegisteredProgressWindows(); } }); }