First working version of the IDEA plugin.