static boolean isOverlap(RegionInfo ri, Pair<RegionInfo, RegionInfo> pair) {
    if (ri == null || pair == null) {
      // Can't be an overlap in either of these cases.
      return false;
    }
    return ri.isOverlap(pair.getFirst()) || ri.isOverlap(pair.getSecond());
  }
@return True if an overlap found between passed in <code>ri</code> and the <code>pair</code>.
        Does NOT check the pairs themselves overlap.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/janitor/MetaFixer.java