private static void addCellToTag(@NonNls Project project, TableCell cell, boolean toPlaceBefore, boolean insideHeader) throws IncorrectOperationException {
    if (toPlaceBefore) {
      XmlTag newCell = createTableCellXmlTag(project, insideHeader);
      cell.tag.getParent().addBefore(newCell, cell.tag);
    } else {
      XmlTag newCell = createTableCellXmlTag(project, insideHeader);
      cell.tag.getParent().addAfter(newCell, cell.tag);
    }
  }
private static void addCellToTag(@NonNls Project project, TableCell cell, boolean toPlaceBefore, boolean insideHeader)