docs: public boolean hasExtension(String namespace) {
          synchronized (packetExtensions) {
              for (ExtensionElement packetExtension : packetExtensions.values()) {
                  if (packetExtension.getNamespace().equals(namespace)) {
                      return true;
                  }
              }
          }
          return false;
      }