docs: public static synchronized AccountManager getInstance(XMPPConnection connection) {
          AccountManager accountManager = INSTANCES.get(connection);
          if (accountManager == null) {
              accountManager = new AccountManager(connection);
              INSTANCES.put(connection, accountManager);
          }
          return accountManager;
      }