An Intellij plugin that performs static analysis using PMD. Download it from here or via the plugin manager.
To setup the dev environment, open this project in idea and add the PMD library files (download from here. You should be able to build and test the plugin. Feel free to raise pull requests!