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