Can I create custom inspections?

Is it possible to create custom inspections for Rubymine? I don't mean a custom inspection list, that's easy to do (just check the boxes of the ones you want to run). What I'm looking for is: suppose I want to enforce some coding standard which requires every method to be less than 10 lines. Can I make an inspection that will check for that? If so, how?

Please sign in to leave a comment.