private IType GetInferredType(IMethod entity) { return IsDuckTyped(entity) ? this.TypeSystemServices.DuckType : entity.ReturnType; }