void () { doTest( InspectionGadgetsBundle.message("extract.parameter.as.local.variable.quickfix"), "class X {\n" + " void m() {\n" + " for (String s : new String[]{\"one\", \"two\", \"three\"})\n" + " s/**/ = \"four\";\n" + " }\n" + "}", "class X {\n" + " void m() {\n" + " for (String s : new String[]{\"one\", \"two\", \"three\"}) {\n" + " String string = s;\n" + " string = \"four\";\n" + " }\n" + " }\n" + "}" ); }