void (@NotNull Throwable t) { if (myTargetPromise.isDone()) { throw new IllegalStateException("Target value is already resolved to '" + myTargetPromise.get() + "'"); } myTargetPromise.setError(ExecutionBundle.message("message.error.happened.0", t.getMessage())); }