docs: public void set(BridgeFactory factory) {
          if (factory.getNearType() != nearType) {
              throw new IllegalArgumentException("Type mismatch: " + nearType + ": " + factory.getNearType());
          }
          factorySetting.set(factory);
      }