code: void updateProviders(ConsumerConfig config, List<Instance> instances) {
          if (LOGGER.isInfoEnabled(config.getAppName())) {
              LOGGER.infoWithApp(config.getAppName(),
                  "Receive update provider: serviceName={}, size={}, data={}", config.getInterfaceId(), instances.size(),
                  instances);
          }
          List<ProviderInfoListener> providerInfoListeners = providerListenerMap.get(config);
          if (CommonUtils.isNotEmpty(providerInfoListeners)) {
              List<ProviderInfo> providerInfos = NacosRegistryHelper.convertInstancesToProviders(instances);
              List<ProviderInfo> matchProviders = RegistryUtils.matchProviderInfos(config, providerInfos);
  
              for (ProviderInfoListener providerInfoListener : providerInfoListeners) {
                  providerInfoListener
                      .updateAllProviders(Collections.singletonList(new ProviderGroup().addAll(matchProviders)));
              }
          }
      }
docs: Update providers.
  
  @param config the config
  @param instances the instances