Yes. You just need to insert an action (e.g. *.instance) into the folder Editors/text/x-java/Popup/ in your module's XML layer.

Source: NetBeans FAQ