@Override
public void messageReceived(EventNotification eventMessage) {
EventNotificationBody body = eventMessage.body();
ScriptCollectedBody scriptCollectedBody;
try {
scriptCollectedBody = body.asScriptCollectedBody();
} catch (JsonProtocolParseException e) {
throw new RuntimeException(e);
}
long scriptId = scriptCollectedBody.script().id();
getDebugSession().getScriptManager().scriptCollected(scriptId);
}