in shared/java/Rect.java [67:72]
public Rect intersect(@NotNull Rect other) {
assert other != null : "Rect::intersect expected other != null";
if (_right <= other._left || other._right <= _left || _bottom <= other._top || other._bottom <= _top)
return null;
return new Rect(Math.max(_left, other._left), Math.max(_top, other._top), Math.min(_right, other._right), Math.min(_bottom, other._bottom));
}