Updated to work with Intellij IDEA 12 (with Gil's permission). Removing unused CodeGraph references