void (@NotNull MultiHostRegistrar registrar, @NotNull PsiElement context) { if (context.getText().contains("xxx")) { registrar .startInjecting(RegExpLanguage.INSTANCE) .addPlace(null, null, (PsiLanguageInjectionHost) context, StringLiteralManipulator.getValueRange((PsiLiteralExpression) context)) .doneInjecting(); } }