private static void toTemplateExpression(@NotNull StringBuilder result, boolean isEmbeddedExpression, @NotNull PsiElement element) {
      if (isEmbeddedExpression || result.isEmpty()) {
        if (isEmbeddedExpression) {
          result.append("\\{").append(element.getText()).append("}");
        }
        else {
          result.append(element.getText());
        }
      }
      else {
        result.append("+").append(element.getText());
      }
    }
private static void toTemplateExpression(@NotNull StringBuilder result, boolean isEmbeddedExpression, @NotNull PsiElement element)