Fix version compatibility for Idea 12