void () { myFixture.configureByText("Test.java", """ class Test { void f(Iterable<String> it) { <caret>it; } }"""); IntentionAction action = myFixture.findSingleIntention("Iterate over Iterable<String>"); assertPreviewText(action, """ class Test { void f(Iterable<String> it) { for (String s : it) { } } }"""); }