@Override
    public void removeIfComma(PsiElement forward) {
      if (forward instanceof LeafPsiElement leaf) {
        if (leaf.getElementType() == JsonElementTypes.COMMA) {
          forward.delete();
        }
        if (leaf.getElementType() == JsonElementTypes.R_CURLY && PsiTreeUtil.skipWhitespacesBackward(leaf) instanceof LeafPsiElement prev &&
            prev.getElementType() == JsonElementTypes.COMMA) {
          prev.delete();
        }
      }
    }
@Override
    public void removeIfComma(PsiElement forward)