Add back support for IDEA 12