code: public void addProviderListener(ConsumerConfig consumerConfig, ProviderInfoListener listener) {
          if (listener != null) {
              RegistryUtils.initOrAddList(providerListenerMap, consumerConfig, listener);
          }
      }
docs: Add provider listener.
  
  @param consumerConfig the consumer config
  @param listener       the listener