void () { if (myTargetPromise.isDone()) { throw new IllegalStateException("Target value is already resolved to '" + myTargetPromise.get() + "'"); } myTargetPromise.setError(ExecutionBundle.message("error.message.should.not.proceed.further")); }