for (XYDataset d : mappedDatasets) {
if (d != null) {
XYItemRenderer r = getRendererForDataset(d);
if (r != null) {
if (isDomainAxis) {
result = Range.combine(result, r.findDomainBounds(d));
} else {
result = Range.combine(result, r.findRangeBounds(d));
}
Collection<XYAnnotation> c = r.getAnnotations();
for (XYAnnotation a : c) {