void (@NotNull MultiHostRegistrar registrar, @NotNull PsiElement context) { TextRange range = new TextRange(4, context.getTextLength() - 4); registrar.startInjecting(PythonLanguage.INSTANCE) .addPlace(null, null, (PsiLanguageInjectionHost)context, range) .doneInjecting(); }