JetBrains/kotlin — pull request #463 by ElliotM (2014-04-30 02:34:09+00:00)
Title: KT-4820: Intention to introduce/remove indices from a for-loop

This pull request creates two intentions to introduce and remove indices from a for loop. The indices-addition intention is only provided if the collection supports "withIndices()," and the indices-removal intention is only provided if the index variable is unused.

Test coverage is admittedly a bit shallow at the moment, so please feel free to suggest any more cases it should cover.