docs: private Chat createChat(Message message) {
          Jid from = message.getFrom();
          // According to RFC6120 8.1.2.1 4. messages without a 'from' attribute are valid, but they
          // are of no use in this case for ChatManager
          if (from == null) {
              return null;
          }
  
          EntityJid userJID = from.asEntityJidIfPossible();
          if (userJID == null) {
              LOGGER.warning("Message from JID without localpart: '" + message.toXML() + "'");
              return null;
          }
          String threadID = message.getThread();
          if (threadID == null) {
              threadID = nextID();
          }
  
          return createChat(userJID, threadID, false);
      }