when expressions with the constant true or false branches.
Simplify "when" quick-fix can be used to amend the code automatically.
Examples:
fun redundant() {
when { // <== redundant, quick-fix simplifies the when expression to "println("true")"
true -> println("true")
else -> println("false")
}
}