PsiExpression (PsiElement context, @NonNls String replacement) { return JavaPsiFacade.getElementFactory(context.getProject()).createExpressionFromText( myTemplate.replace("{0}", replacement), context); }