public static <T extends Annotation>List<T> selectOverlapping(JCas aJCas,final Class<T> aType,int aBegin,int aEnd){
  List<T> annotations=new ArrayList<T>();
  for (  T t : select(aJCas,aType)) {
    if (t.getBegin() >= aEnd) {
      break;
    }
    if (t.getEnd() <= aBegin) {
      continue;
    }
    annotations.add(t);
  }
  return annotations;
}

public static < T extends Annotation > List < T > selectOverlapping ( JCas aJCas , final Class < T > aType , int aBegin , int aEnd ) { List < T > annotations = new ArrayList < T > ( ) ; for ( T t : select ( aJCas , aType ) ) { if ( t . getBegin ( ) >= aEnd ) { break ; } if ( t . getEnd ( ) <= aBegin ) { continue ; } annotations . add ( t ) ; } return annotations ; }
get overlapping annotations where selection overlaps with annotations . < br > example : if annotation is ( 5 , 13 ) and selection covered was from ( 7 , 12 ) ; the annotation ( 5 , 13 ) is returned as overlapped selection < br > if multiple annotations are [ ( 3 , 8 ) , ( 9 , 15 ) , ( 16 , 21 ) ] and selection covered was from ( 10 , 18 ) , overlapped annotation [ ( 9 , 15 ) , ( 16 , 21 ) ] should be returned
