heuristicAnnotation.setAnnotation(newAnnotation);
List<AnnotationFS> annotationsInWindow = stream.getAnnotationsInWindow(heuristicAnnotation,
heuristicType);
if (annotationsInWindow.isEmpty()) {
heuristicAnnotation.addToIndexes();
newAnnotation.addToIndexes();
stream.addAnnotation(newAnnotation, match);
} else {
RutaAnnotation tma = stream.getCorrectTMA(annotationsInWindow, heuristicAnnotation);
if (tma != null) {