void () { configureByText(JavaFileType.INSTANCE, """ class Foo { public String foo(String s) { while (s.length() > 0) { if (s.length() < 0) { s = ""; continue; } else { } } <caret>return s; } }"""); ctrlShiftF7(); assertRangeText("return s;"); }