The 120V switch and 277V switch can be in the same box IF the voltage between 2 adjacent switches doesn't exceed 300V.

It's in 404.8(B) smile

(I wonder what the voltage between the 2 systems is?)