void () { synchronized (myLock) { myDisposed = true; for (ProgressIndicator indicator : myTasksWithVisibleProgress) { indicator.cancel(); } for (ProgressIndicator indicator : myTasksWithSilentProgress) { indicator.cancel(); } } }