code: public StandardCredentials createCredentials(@Nullable String serverAPIUrl, String token, String username) {
          String url = defaultIfBlank(serverAPIUrl, GITHUB_URL);
          String description = format("GitHub (%s) auto generated token credentials for %s", url, username);
          StringCredentialsImpl creds = new StringCredentialsImpl(
                  CredentialsScope.GLOBAL,
                  UUID.randomUUID().toString(),
                  description,
                  Secret.fromString(token));
          return createCredentials(url, creds);
      }
docs: Creates {@link org.jenkinsci.plugins.plaincredentials.StringCredentials} with previously created GH token.
  Adds them to domain extracted from server url (will be generated if no any exists before).
  Domain will have domain requirements consists of scheme and host from serverAPIUrl arg
  
  @param serverAPIUrl to add to domain with host and scheme requirement from this url
  @param token        GH Personal token
  @param username     used to add to description of newly created creds
  
  @return credentials object
  @see #createCredentials(String, StandardCredentials)