docs: @SuppressWarnings("unchecked")
      public BridgeFactory getBridgeFactory(Class<?> farType) {
          if (!farToNearType.containsKey(farType)) {
              throw new IllegalStateException("Far type not registered: " + (farType == null ? "null" : farType.getSimpleName()));
          }
          return farTypeToFactory.get(farType);
      }