PsiElement (@NotNull PsiElement context, @NotNull String prefix, @NotNull String suffix) { String text = prefix + context.getText() + suffix; return PyElementGenerator.getInstance(context.getProject()).createExpressionFromText(LanguageLevel.forElement(context), text); }