code: public static boolean areOffsetsOverlapping(TermOccurrence a, TermOccurrence b) {
  		if(a.getBegin() <= b.getBegin()) 
  			return !(a.getBegin() <= b.getEnd() && a.getEnd() <= b.getBegin());
  		else
  			return !(b.getBegin() <= a.getEnd() && b.getEnd() <= a.getBegin());
  			
  	}
docs: True if two {@link TermOccurrence} offsets overlap strictly. Sharing exactly
  one offset (e.g. <code>a.end == b.begin</code>) is not considered as overlap.
  
  @param a
  @param b
  @return