void () { if (myCheckCancelledFuture != null) { return; } myCheckCancelledFuture = AppExecutorUtil.getAppScheduledExecutorService().scheduleWithFixedDelay(() -> { for (ProgressIndicator indicator : nonStandardIndicators.keySet()) { try { indicator.checkCanceled(); } catch (ProcessCanceledException e) { indicatorCanceled(indicator); } } }, 0, CHECK_CANCELED_DELAY_MILLIS, TimeUnit.MILLISECONDS); }