void (final int[] widths, final int cell, final int span, final int minWidth, final DimensionInfo info, final boolean checkPrefs) { int toDistribute = minWidth; for (int i = cell; i < cell + span; i++) { toDistribute -= widths[i]; } if (toDistribute <= 0) { return; } final boolean[] allowedCells = new boolean[info.getCellCount()]; for (int i = cell; i < cell + span; i++) { allowedCells[i] = true; } final boolean[] higherPriorityCells = new boolean[info.getCellCount()]; getCellsWithHigherPriorities(info, allowedCells, higherPriorityCells, checkPrefs, widths); distribute(higherPriorityCells, info, toDistribute, widths); }