Fixed to work in IDEA 12