inspections

Writing Intelli-J inspections?

How would I go about writing my own Intelli-J inspection? I'm looking for some general guides or resources. I want to bring up an inspection hint every time a collection class is instantiated manually, rather than through the Guava (List.newArrayList()/Maps.newHashMap()) etc. as per a team-wide standard. I'd appreciate any direction. ...

Intelli-J structural search regex questions...

I need to match variables that start with a lowercase letter and don't end in an underscore. I have these three fields: private String shouldFlag; private String shouldntFlag_; private String SHOULDNTFLAG; With this pattern inverted: ^[a-z].*_$ Used with for fieldname in the following template: class $Class$ { $FieldType$ $Field...