Example:
data class Product(val id: String, val productName: String)
val (id, name) = product // warning on "name"
The following quick-fixes are available:
val (id, productName) = productval [id, name] = productFor standard library classes like Pair, Triple, and IndexedValue, the inspection suggests using positional destructuring syntax since these types are designed for positional access rather than name-based matching.
This inspection prepares code for an upcoming Kotlin language feature change where val (x, y) = e syntax will flip from position-based to name-based destructuring.