This topic describes the comparingReferences sample plugin that creates a custom inspection of Java code. In addition, the sample plugin contains a
JUnit-based test. Basing on this information, you can develop your own plugins using similar techniques.
About Code Inspections
IntelliJ IDEA provides tools designed for static code analysis (so called code instections) that help you maintain and clean up your code without actually executing it. In IntelliJ IDEA you will find a set of built-in inspections that are grouped by their goals and sense. For more information about code inspections, see Inspecting Source Code in IntelliJ IDEA Web Help.
You can create custom inspections through the IntelliJ IDEA interface (see Creating Own Inspections ). Alternatively, you can develop a plugin to implement a custom inspection.