private void groupSegment(List<ColSegmentList<E>> groups, ColumnSegment<E> segment) {
		ColSegmentList<E> newGroup = new ColSegmentList<E>(segment);
		for (int i = groups.size() - 1; i >= 0; i--) {
			if (newGroup.intersects(groups.get(i))) {
				newGroup.merge(groups.get(i));
				groups.remove(i);
			}
		}
		groups.add(newGroup);
	}
Checks if the range of y values in a given column segment list intersects the
range of y values in this column segment.
@param other the column segment list to compare
@return true if they intersect ranges.
Ghidra/Features/FunctionGraph/src/main/java/ghidra/app/plugin/core/functiongraph/graph/layout/flowchart/ColSegmentList.java