docs: @Pure
  	public RoadSegment getConnectableSegmentToFirstPoint(RoadPath path) {
  		assert path != null;
  		if (path.isEmpty()) {
  			return null;
  		}
  		RoadConnection first1 = getFirstPoint();
  		RoadConnection first2 = path.getFirstPoint();
  		RoadConnection last2 = path.getLastPoint();
  		first1 = first1.getWrappedRoadConnection();
  		first2 = first2.getWrappedRoadConnection();
  		last2 = last2.getWrappedRoadConnection();
  		if (first1.equals(first2)) {
  			return path.getFirstSegment();
  		}
  		if (first1.equals(last2)) {
  			return path.getLastSegment();
  		}
  		return null;
  	}