void () { if (myModalityState == null) { myFuture = myExecutorService.schedule(Propagation.contextAwareCallable(this), myDelayMillis, TimeUnit.MILLISECONDS); } else { myFuture = EdtScheduledExecutorService.getInstance().schedule((ContextAwareRunnable)this::run, myModalityState, myDelayMillis, TimeUnit.MILLISECONDS); } }