Import the NetBeans style from the resources/codestyle/netbeans/netbeans_style.zip file, found within the codestyle project’s resource directory. The import is started by pressing the Preferences | Import … button as illustrated in the image below:
Select all parts to import, and press OK. NetBeans will restart and then apply the style definitions:
You are now set up with the Nazgul codestyle.