protected String parseMovesMessage(String inboundMessage,List<ChatEvent> events){
  MovesMessage movesMessage=movesParser.parse(inboundMessage);
  if (movesMessage != null) {
    process(movesMessage,connector.getGameService());
    events.add(new ChatEvent(null,ChatType.MOVES,inboundMessage));
    return null;
  }
 else {
    return inboundMessage;
  }
}

protected String parseMovesMessage ( String inboundMessage , List < ChatEvent > events ) { MovesMessage movesMessage = movesParser . parse ( inboundMessage ) ; if ( movesMessage != null ) { process ( movesMessage , connector . getGameService ( ) ) ; events . add ( new ChatEvent ( null , ChatType . MOVES , inboundMessage ) ) ; return null ; } else { return inboundMessage ; } }
parses out the moves message from inboundevent . it is assumed moves messages will never contain other messages .
