void () { quickFixTest(""" import org.intellij.lang.annotations.Language; class X { String JS_CODE = "var y;"; @Language("JavaScript") String OTHER_JS_CODE = JS_<caret>CODE; } """, """ import org.intellij.lang.annotations.Language; class X { @Language("JavaScript") String JS_CODE = "var y;"; @Language("JavaScript") String OTHER_JS_CODE = JS_<caret>CODE; } """, "Annotate field 'JS_CODE' as '@Language'"); }