docs: protected JvmTypeReference cloneWithProxiesFromOtherResource(JvmTypeReference type, JvmOperation target) {
  		if (type == null) {
  			return this._typeReferenceBuilder.typeRef(Void.TYPE);
  		}
  		// Do not clone inferred types because they are not yet resolved and it is located within the current resource.
  		if (InferredTypeIndicator.isInferred(type)) {
  			return type;
  		}
  		// Do not clone primitive types because the associated resource to the type reference will not be correct.
  		final String id = type.getIdentifier();
  		if (Objects.equal(id, Void.TYPE.getName())) {
  			return this._typeReferenceBuilder.typeRef(Void.TYPE);
  		}
  		if (this.services.getPrimitives().isPrimitive(type)) {
  			return this._typeReferenceBuilder.typeRef(id);
  		}
  		// Clone the type
  		if (target != null) {
  			return cloneWithTypeParametersAndProxies(type, target);
  		}
  		return this.typeBuilder.cloneWithProxies(type);
  	}