void () { if (isCancelRequested() && myRunningProcesses.containsKey(myProcessId)) { final Channel channel = myConnections.get(myProcessId); if (channel != null) { channel.writeAndFlush(JavacProtoUtil.toMessage(myId, JavacProtoUtil.createCancelRequest())); } } }