@Override
    protected void applyFix(@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) {
      if (element instanceof PsiLiteralExpression expression) {
        if (!expression.isTextBlock()) return;
        String text = buildReplacementText(element, "\"\"\"", myTransformation);
        if (text == null) return;
        replaceTextBlock(expression, text);
      }
      else if (element instanceof PsiFragment fragment) {
        if (fragment.isTextBlock() && fragment.getParent() instanceof PsiTemplate template) {
          @NotNull List<@NotNull PsiFragment> fragments = template.getFragments();
          for (int i = fragments.size() - 1; i >= 0; i--) {
            PsiFragment current = fragments.get(i);
            String suffix = fragment.getTokenType() == JavaTokenType.TEXT_BLOCK_TEMPLATE_END ? "\"\"\"" : "\\{";
            String text = buildReplacementText(current, suffix, myTransformation);
            if (text == null) return;
            PsiReplacementUtil.replaceFragment(current, text);
            if (fragment == current) break;
          }
        }
      }
    }
@Override
    protected void applyFix(@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater)