Custom code inspection for Annotations

Intellij ships with the code inspection for @Path and @PathParam that checks that values in @Path are "consumed" by a @PathParam (for JAX-RS).

I've created a custom annotation for "consuming" the @Path to replace the @PathParam.

How would I go about (and any suggestions to extend/duplicate) creating a code inspector that would perform the same inspection for @Path with my custom Annotation?

The attached image shows an example.


Screen Shot 2015-09-15 at 2.48.38 pm.png

Please sign in to leave a comment.