make code generator compatible with latest intellij builds