public static < T extends Annotation > boolean doOverlap ( final T anno1 , final T anno2 ) { return anno1 . getEnd ( ) > anno2 . getBegin ( ) && anno1 . getBegin ( ) < anno2 . getEnd ( ) ; }
Returns whether the given annotations have a non - empty overlap .