@Override
    protected void applyFix(@NotNull Project project, @NotNull PsiElement leftBrace, @NotNull ModPsiUpdater updater) {
      final PsiElement parent = leftBrace.getParent();
      if (!(parent instanceof PsiCodeBlock block)) {
        return;
      }
      final PsiElement firstBodyElement = block.getFirstBodyElement();
      final PsiElement lastBodyElement = block.getLastBodyElement();
      final PsiBlockStatement blockStatement = (PsiBlockStatement)block.getParent();
      if (firstBodyElement != null && lastBodyElement != null) {
        final PsiElement element = blockStatement.getParent();
        element.addRangeBefore(firstBodyElement, lastBodyElement, blockStatement);
      }
      blockStatement.delete();
    }
@Override
    protected void applyFix(@NotNull Project project, @NotNull PsiElement leftBrace, @NotNull ModPsiUpdater updater)