LanguageLevel () { final InjectedLanguageManager languageManager = InjectedLanguageManager.getInstance(getProject()); final PsiLanguageInjectionHost host = languageManager.getInjectionHost(this); if (host != null) return LanguageLevel.forElement(host.getContainingFile()); return super.getLanguageLevel(); }