N.Y. General Obligations Law § 5-336
1.
3. Notwithstanding any other law to the contrary, no release of any claim, the factual foundation for which involves unlawful discrimination, including discriminatory harassment, or retaliation, shall be enforceable, if as part of the agreement resolving such claim: