List<FrozenCell> splitRange(FrozenCell cell) { if (!cell.canBeContainedByChildren()) { return Collections.emptyList(); } Granularity childGran = cell.getLayer().getChild().getGranularity(); if (childGran.isSmallerThan(minGran)) { return Collections.emptyList(); } return cell.getChildren(); } }
result.add(cell); } else { addToProcess.addAll(cell.getChildren());