code: public static CredentialsConfig getPreferredResolver(ResolverOverrider resolverOverrider, ArtifactoryServer server) {
          if (resolverOverrider != null && resolverOverrider.isOverridingDefaultResolver()) {
              CredentialsConfig resolverCredentialsConfig = resolverOverrider.getResolverCredentialsConfig();
              if (resolverCredentialsConfig != null) {
                  return resolverCredentialsConfig;
              }
          }
  
          return server.getResolvingCredentialsConfig();
      }
docs: Decides and returns the preferred resolver credentials to use from this builder settings and selected server
  Override priority:
  1) Job override resolver
  2) Plugin manage override resolver
  3) Plugin manage general
  
  @param resolverOverrider Resolve-overriding capable builder
  @param server            Selected Artifactory server
  @return Preferred resolver credentials