Added support for IDEA 13.1 (Build 135.475)

Hi Opher,

as discussed previously I tried to make the plugin compatible with 13.1. I decided not to use reflection, this got really really ugly. The solution now seems quite clean to me. I hope you approve.