Workaround for http://youtrack.jetbrains.com/issue/IDEABKL-6290 bug.