Consider boundary rules when retrieving annotations.