Follow up of #9494 and Azure/azure-sdk-for-net#55300
The fix of above two fixes are focusing on checking if the parameter is "header".
But the real issue happens in the parameters of inputServiceMethod and the parameters in this list are method ("kind": "method") instead of "kind": "header"`. This part is still not fixed.