I don't know if my settings for IntelliJ 9 were wrong or what, but upgrading to IntelliJ 10 solved it!