Collapses the selected statements into a loop when possible.

Note that the extracted elements are evaluated when the loop is initialized. If your code depends on the evaluation order, the quick-fix may affect its semantics.