PsiExpression (Project project, PsiFile file, InjectedLanguageManager injectedLanguageManager, int startOffset, int endOffset) { final PsiLanguageInjectionHost injectionHost = injectedLanguageManager.getInjectionHost(file); return getSelectedExpression(project, injectionHost.getContainingFile(), injectedLanguageManager.injectedToHost(file, startOffset), injectedLanguageManager.injectedToHost(file, endOffset)); }