private static int insertGridCells(RadContainer container, int cell, int cellsToInsert, boolean canGrow, boolean isRow, boolean isBefore,
                                     GridConstraints[] constraintsToAdjust) {
    int insertedCells = 1;
    for(int i=0; i<cellsToInsert; i++) {
      insertedCells = container.getGridLayoutManager().insertGridCells(container, cell, isRow, isBefore, canGrow);
    }
    // for insert after, shift only by one cell + possibly one gap cell, not by entire number of insertions
    if (!isBefore) {
      cell += insertedCells;
    }
    checkAdjustConstraints(constraintsToAdjust, isRow, cell, insertedCells);
    return cell;
  }
private static int insertGridCells(RadContainer container, int cell, int cellsToInsert, boolean canGrow, boolean isRow, boolean isBefore,
                                     GridConstraints[] constraintsToAdjust)