This intention picks up the editor selection and, if it has an array or java.lang.Iterable type, iterates over it. When the editor doesn't contain selection, appropriate expression under the caret would be picked up