PsiCodeFragment (PsiElement context) { TextWithImports text = getEvaluationText(); return DebuggerUtilsEx.findAppropriateCodeFragmentFactory(text, context).createCodeFragment(text, context, myProject); }