void () { IdentifierHighlighterPassFactory.doWithHighlightingEnabled(getProject(), getTestRootDisposable(), () -> { myFixture.configureByText("plugin.xml", """ <idea-plugin> <extensionPoints> <extensionPoint name="foo<caret>.bar"/> </extensionPoints> <extensions> <foo.bar/> </extensions> </idea-plugin> """); List<HighlightInfo> infos = myFixture.doHighlighting(); assertEquals(2, infos.stream().filter(it -> it.getSeverity() == HighlightInfoType.ELEMENT_UNDER_CARET_SEVERITY ).count()); }); }