エルビス式の代わりに等価チェックを使用すべきケースを報告します。

例:


fun check(a: Boolean? = null) {
    if (a ?: false) throw IllegalStateException()
}

クイックフィックス適用後:


fun check(a: Boolean? = null) {
    if (a == true) throw IllegalStateException()
}