code: static Request.Builder preemptivelySetAuthCredentials(
              Request.Builder builder, URL url, Authenticator authenticator) {
          boolean isUrlBased = false;
          String userInfo = url.getUserInfo();
          if (userInfo != null) {
              isUrlBased = true;
          } else {
              if (authenticator != null && authenticator instanceof CredentialAuthorizer) {
                  userInfo = ((CredentialAuthorizer) authenticator).authUserInfo();
              }
          }
          return preemptivelySetAuthCredentials(builder, userInfo, isUrlBased);
      }
docs: /*package