void (@NonNls String code) { code = StringUtil.escapeBackSlashes(code); myFixture.configureByText(JavaFileType.INSTANCE, "class X {{ java.util.regex.Pattern.compile(\"" + code + "\"); }}"); myFixture.testHighlighting(); }