Workaround in our Java code to avoid red code in our project (since bug is fixed only in IDEA 14).