void (final GridConstraints constraints, final boolean isRow, final int beforeIndex, final int count) { if (constraints.getCell(isRow) >= beforeIndex) { addToCell(constraints, isRow, count); } else if (isCellInsideComponent(constraints, isRow, beforeIndex)) { // component belongs to the cell being resized - increment component's span addToSpan(constraints, isRow, count); } }