无法将Kotlin“声明平台类型”警告转换为错误

我有一个简单的Kotlin函数,它正在调用一些Java代码:

fun simpleSchema(field: GraphQLFieldDefinition) = newSchema() .query(newObject() .name("root") .field(field) .build()) .build() 

在我的IDEA里面,即

 IntelliJ IDEA 2016.2.5 Build #IU-162.2228.15, built on October 14, 2016 JRE: 1.8.0_112-release-287-b2 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains sro 

有一个有用的信息:

 Declaration has platform type. Make the type explicit to prevent subtle bugs. This inspection reports functions and properties that have platform type. In order to prevent unexpected errors, the type should be declared explicitly. 

这是伟大的。 但是在编辑器窗格的RHS上,这个消息被着色为弱警告,我想它是一个错误。 我去设置 – >编辑 – >检查 – > Kotlin – >“功能或属性有平台类型”并将其标记为一个错误。

为什么这不起作用? 在检查中搜索“平台类型”显示不超过上述可能的候选人。 我已经重新启动并使缓存失效。

有问题的代码 Alt-Enter的工具提示