void () { myFixture.enableInspections(SpellCheckingInspection.class); myFixture.configureByText(Json5FileType.INSTANCE, """ { "success": /* language=RegExp */ "[i<caret>like]?" } """.stripIndent()); new InjectionTestFixture(myFixture) .assertInjectedLangAtCaret(RegExpLanguage.INSTANCE.getID()); myFixture.checkHighlighting(true, false, true); }