Editor (Editor editor, PsiExpression expr) { return expr != null && Comparing.equal(InjectedLanguageManager.getInstance(expr.getProject()).getTopLevelFile(expr), expr.getContainingFile()) ? InjectedLanguageUtil.getTopLevelEditor(editor) : editor; }