if (!intersectsRegion(p , region)) annotations.remove(a);
}
// Adjust the page
ProjectionAnnotationModel annotationModel = viewer.getProjectionAnnotationModel();
if (annotationModel==null) return;
annotationModel.modifyAnnotations(deletedAnnotations.toArray(ANNOTATION_ARRAY), annotations, null);
// Remember old values
oldAnnotations.putAll(annotations);
for (Annotation a : deletedAnnotations) {
oldAnnotations.remove(a);
}