docs: public void addExtension(ExtensionElement extension) {
          if (extension == null) return;
          String key = XmppStringUtils.generateKey(extension.getElementName(), extension.getNamespace());
          synchronized (packetExtensions) {
              packetExtensions.put(key, extension);
          }
      }