docs: int removeConnectedSegment(RoadSegment segment, boolean attachToStartPoint) {
  		if (segment == null) {
  			return -1;
  		}
  		final int idx = indexOf(segment, attachToStartPoint);
  		if (idx != -1) {
  			this.connectedSegments.remove(idx);
  			fireIteratorUpdate();
  		}
  		return idx;
  	}