Given
List<String> list = List.of("a");
for (String adj : list) {
System.out.println(adj);
}
Highlighting the loop and pressing ctrl+1 gives the options:

I propose to add an option to convert to
list.forEach(s -> System.out.println(s));
Note that the forEach argument can be an expression, a block, and sometimes a method reference. I don't know if all valid options should be presented, just a block (always valid), or attempt to use an expression and if that's not possible then a block, or something else. In any case, another transformation on the result (ctrl+1) can convert between them.
Given
Highlighting the loop and pressing ctrl+1 gives the options:

I propose to add an option to convert to
Note that the
forEachargument can be an expression, a block, and sometimes a method reference. I don't know if all valid options should be presented, just a block (always valid), or attempt to use an expression and if that's not possible then a block, or something else. In any case, another transformation on the result (ctrl+1) can convert between them.