code: synchronized void register(final Provider provider) {
          if (this.provider != null) {
              throw new IllegalStateException(
                      "Duplicate provider registration with feature: " + this +
                      ", previous provider: " + this.provider +
                      ", current provider: " + provider);
          }
  
          this.provider = provider;
      }
docs: /* package