docs: public static Address from(String address) {
      int lastColon = address.lastIndexOf(':');
      int openBracket = address.indexOf('[');
      int closeBracket = address.indexOf(']');
  
      String host;
      if (openBracket != -1 && closeBracket != -1) {
        host = address.substring(openBracket + 1, closeBracket);
      } else if (lastColon != -1) {
        host = address.substring(0, lastColon);
      } else {
        host = address;
      }
  
      int port;
      if (lastColon != -1) {
        try {
          port = Integer.parseInt(address.substring(lastColon + 1));
        } catch (NumberFormatException e) {
          throw new MalformedAddressException(address, e);
        }
      } else {
        port = DEFAULT_PORT;
      }
      return new Address(host, port);
    }