boolean (RegExpNamedCharacter namedCharacter) { PsiLanguageInjectionHost host = InjectedLanguageManager.getInstance(namedCharacter.getProject()).getInjectionHost(namedCharacter); return host == null || LanguageLevel.forElement(host).isAtLeast(LanguageLevel.PYTHON38); }