code: private void removeListener(Integer channel, Class<? extends Message> messageClass,
                                        MessageListener messageListener) {
          if (messageListenerMap.containsKey(messageClass)) {
              ArrayListMultimap<Integer, MessageListener> listenerMap = messageListenerMap.get(messageClass);
              if (listenerMap.containsKey(channel)) {
                  List<MessageListener> messageListeners = listenerMap.get(channel);
                  messageListeners.remove(messageListener);
              }
          }
      }
docs: Remove a messageListener from the Firmata object which will stop the listener from responding to message
  received events over the SerialPort.
  
  @param channel Integer channel to remove the listener from.
  @param messageClass Class indicating the message type to listen to.
  @param messageListener MessageListener to be removed.