void () { myFixture.configureByText("Foo.java", """ class Foo { void bar() { @org.intellij.lang.annotations.Language("encoding-reference") String cset = true ? <error descr="Unknown encoding: ''">""</error> : "utf-8";// } }"""); myFixture.testHighlighting(); }