Checkstyle rules applied to a couple of files

Minor and major warnings fixed.

One warning ignored:
- Preserve Stack Trace in ThisPlugInDetector.java for throw a new exception,