code: public static BoundingBox overlap(BoundingBox boundingBox,
  			BoundingBox boundingBox2, double maxLongitude, boolean allowEmpty) {
  
  		BoundingBox bbox2 = boundingBox2;
  
  		double adjustment = 0.0;
  
  		if (maxLongitude > 0) {
  			if (boundingBox.getMinLongitude() > boundingBox2.getMaxLongitude()) {
  				adjustment = maxLongitude * 2.0;
  			} else if (boundingBox.getMaxLongitude() < boundingBox2
  					.getMinLongitude()) {
  				adjustment = maxLongitude * -2.0;
  			}
  		}
  
  		if (adjustment != 0.0) {
  			bbox2 = new BoundingBox(boundingBox2);
  			bbox2.setMinLongitude(bbox2.getMinLongitude() + adjustment);
  			bbox2.setMaxLongitude(bbox2.getMaxLongitude() + adjustment);
  		}
  
  		return overlap(boundingBox, bbox2, allowEmpty);
  	}
docs: Get the overlapping bounding box between the two bounding boxes adjusting
  the second box to an Anti-Meridian complementary version based upon the
  max longitude
  
  @param boundingBox
  bounding box
  @param boundingBox2
  bounding box 2
  @param maxLongitude
  max longitude of the world for the current bounding box units
  @param allowEmpty
  allow empty latitude and/or longitude ranges when determining
  overlap
  
  @return bounding box
  @since 2.0.0