1099-NEC reporting to NYS as nonresident

Hello -- I am a full-time resident of IL. I worked as a consultant for a museum in NYS, and they gave me a 1099-NEC. A small portion of the work was performed at the museum itself in NY, and 90% has been done at home in IL. Our income exceeds the standard NYS deduction. First, do I need to file in NYS as a non-resident? And second, if so, do I report the 1099-NEC on NY's IT-2 form (it says it's only for W2s)?