Begin fix for intellij 13.1 template lookup