Only check overlapping for intersections when building RangeIterator
The check for isOverlapping calls b.hasNext(). That can be an expensive operation. Since overlapping only matters for intersections, we should only calculate it when we have an intersection.
Kudos, SonarCloud Quality Gate passed! 
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
100.0% Coverage
0.0% Duplication
The version of Java (11.0.15) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here
this is reasonable, but giving it a (possibly incorrect) default value seems fragile for a public method.
short of deeper surgery, I think making it a Boolean and leaving it null for non-Intersection iterators, then throwing IllegalState in isDisjoint is the simplest option?
Superseded by https://github.com/datastax/cassandra/pull/1210