docs: private ChatSettings getChatSettings(String key, int type) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
          ChatSettings request = new ChatSettings();
          if (key != null) {
              request.setKey(key);
          }
          if (type != -1) {
              request.setType(type);
          }
          request.setType(IQ.Type.get);
          request.setTo(workgroupJID);
  
          ChatSettings response = connection.createStanzaCollectorAndSend(request).nextResultOrThrow();
  
          return response;
      }