1099 NEC Entry Payment from Lawsuit

I received a payment from a lawsuit.  The company sued sent me a 1099 NEC form, with box 1 filled in with an amount, labeled nonemployee compensation.  The lawyer sent me a 1099 MISC form.  The company sued did not pay me directly they paid the lawyer, who in turn paid me.  How do I zero out the 1099 NEC so I am not getting double taxed on it?