Optimize MessageList.add(MessageList, int, int)