docs: 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();
      }