The statute does not differentiate between sexual harassment and other forms of gender discrimination, but requires that sexual harassment be viewed as one species discrimination based on sex or gender.
Crookendale v. New York City Health & Hosps. Corp., NY Slip Op 06446 (1st Dep't September 3, 2019)
Here is the decision.