It may depend on your keymap. I recommend using the 10.5+ keymap wich is optimized for Mac OS (ie cmd-w is close tab and not incremental select). In that case code generate, which you are referring to, is cmd-n.
In both IntelliJ or Android Studio you can set it to whatever you want. I use an Apple keyboard and a KVM to switch between my Mac and PC. The keyboard doesn't have an insert key so I had to change it to simply the 'Back Quote' which is just below the esc key on my Apple keyboard. From the Main menu go..
File > Settings
then
Keymap > Main menu > Code > Generate..
to edit, right click (or use the green pencil) and select 'Remove existing shortcut' or 'Add another one'. The IDE will warn you if the key or combination of keys are already used.