void () { quickFixTest(""" import org.intellij.lang.annotations.Pattern; class X { @Pattern("[0-9]+") String str = create<caret>Value(); public static String createValue() { return 123 + "a"; } } """, """ import org.intellij.lang.annotations.Pattern; import org.intellij.lang.annotations.Subst; class X { @Pattern("[0-9]+") String str = createValue(); @Subst("<caret>") public static String createValue() { return 123 + "a"; } } """, "Annotate method 'createValue()' as '@Subst'"); }