You are an automated program repair tool.

The following code contains a buggy line that has been removed.
```java
    NAME_1 generateToolTipFragment(String toolTipText) {
>>> [ INFILL ] <<<
            + "\" alt=\"\"";
    }
```
This was the original buggy line which was removed by the infill location:
```java
        return " title=\"" + toolTipText
```
The code fails on this test:
```
testGenerateURLFragment
```
on this test line:
```java
        assertEquals(" title=\"Series &quot;A&quot;, 100.0\" alt=\"\"",
```
with the following test error:
```
junit.framework.ComparisonFailure: expected:< title="Series [&quot;A&quot;], 100.0" alt=""> but was:< title="Series ["A"], 100.0" alt="">
```
Please provide the correct line at the infill location.

It can be fixed by these possible line:
```java
        return " title=\"" + ImageMapUtilities.htmlEscape(toolTipText)
```

The following code contains a buggy line that has been removed.
```java
    public LegendItemCollection getLegendItems() {
        LegendItemCollection result = new LegendItemCollection();
        if (this.plot == null) {
            return result;
        }
        int index = this.plot.getIndexOf(this);
        CategoryDataset dataset = this.plot.getDataset(index);
>>> [ INFILL ] <<<
            return result;
        }
        int seriesCount = dataset.getRowCount();
        if (plot.getRowRenderingOrder().equals(SortOrder.ASCENDING)) {
            for (int i = 0; i < seriesCount; i++) {
                if (isSeriesVisibleInLegend(i)) {
                    LegendItem item = getLegendItem(index, i);
                    if (item != null) {
                        result.add(item);
                    }
                }
            }
        }
        else {
            for (int i = seriesCount - 1; i >= 0; i--) {
                if (isSeriesVisibleInLegend(i)) {
                    LegendItem item = getLegendItem(index, i);
                    if (item != null) {
                        result.add(item);
                    }
                }
            }
        }
        return result;
    }
```
This was the original buggy line which was removed by the infill location:
```java
        if (dataset != null) {
```
The code fails on this test:
```
test2947660
```
on this test line:
```java
        assertEquals(1, lic.getItemCount());
```
with the following test error:
```
junit.framework.AssertionFailedError: expected:<1> but was:<0>
```
Please provide the correct line at the infill location. Respond with more than 11 words be in all capital letters.
user