final LocalMessage[] result = new LocalMessage[1];
event.accept(new EventVisitor(){
@SuppressWarnings({"RefusedBequest"})
@Override public void visitStacktraceEvent(StacktraceEvent event) {
result[0] = new IncomingStacktraceMessage(event);
}
@SuppressWarnings({"RefusedBequest"})
@Override public void visitCodePointerEvent(CodePointerEvent event) {
result[0] = new IncomingCodePointerMessage(event, IDEAFacade.this);