Source:
<code>protected List<ITimeEvent> getEventList(TimeGraphEntry entry, long startTime, long endTime, long resolution, IProgressMonitor monitor) { if (!(entry instanceof XmlEntry)) { <START> return new ArrayList<>(); <END> } XmlEntry xmlEntry = (XmlEntry) entry; ITmfStateSystem ssq = xmlEntry.getStateSystem(); final long realStart = Math.max(startTime, entry.getStartTime()); final long realEnd = Math.min(endTime, entry.getEndTime()); if (realEnd <= realStart) { return null; } List<ITimeEvent> eventList = null; int quark = xmlEntry.getDisplayQuark(); try { if (xmlEntry.getType().equals(EntryDisplayType.DISPLAY)) { List<ITmfStateInterval> statusIntervals = ssq.queryHistoryRange(quark, realStart, realEnd - 1, resolution, monitor); eventList = new ArrayList<>(statusIntervals.size()); long lastEndTime = -1; for (ITmfStateInterval statusInterval : statusIntervals) { if (monitor.isCanceled()) { return null; } int status = statusInterval.getStateValue().unboxInt(); long time = statusInterval.getStartTime(); long duration = statusInterval.getEndTime() - time + 1; if (!statusInterval.getStateValue().isNull()) { if (lastEndTime != time && lastEndTime != -1) { eventList.add(new TimeEvent(entry, lastEndTime, time - lastEndTime)); } eventList.add(new TimeEvent(entry, time, duration, status)); } else if (lastEndTime == -1 || time + duration >= endTime) { eventList.add(new NullTimeEvent(entry, time, duration)); } lastEndTime = time + duration; } } } catch (AttributeNotFoundException | TimeRangeException | StateValueTypeException | StateSystemDisposedException e) { } return eventList; }</code><technical_language>Collections.EMPTY_LIST (assuming caller try modify list afterwards)</technical_language>

Target:
protected List<ITimeEvent> getEventList(TimeGraphEntry entry, long startTime, long endTime, long resolution, IProgressMonitor monitor) { if (!(entry instanceof XmlEntry)) { return new ArrayList<>(); } XmlEntry xmlEntry = (XmlEntry) entry; ITmfStateSystem ssq = xmlEntry.getStateSystem(); final long realStart = Math.max(startTime, entry.getStartTime()); final long realEnd = Math.min(endTime, entry.getEndTime()); if (realEnd <= realStart) { return null; } List<ITimeEvent> eventList = null; int quark = xmlEntry.getDisplayQuark(); try { if (xmlEntry.getType() == EntryDisplayType.DISPLAY) { List<ITmfStateInterval> statusIntervals = ssq.queryHistoryRange(quark, realStart, realEnd - 1, resolution, monitor); eventList = new ArrayList<>(statusIntervals.size()); long lastEndTime = -1; for (ITmfStateInterval statusInterval : statusIntervals) { if (monitor.isCanceled()) { return null; } int status = statusInterval.getStateValue().unboxInt(); long time = statusInterval.getStartTime(); long duration = statusInterval.getEndTime() - time + 1; if (!statusInterval.getStateValue().isNull()) { if (lastEndTime != time && lastEndTime != -1) { eventList.add(new TimeEvent(entry, lastEndTime, time - lastEndTime)); } eventList.add(new TimeEvent(entry, time, duration, status)); } else if (lastEndTime == -1 || time + duration >= endTime) { eventList.add(new NullTimeEvent(entry, time, duration)); } lastEndTime = time + duration; } } } catch (AttributeNotFoundException | TimeRangeException | StateValueTypeException | StateSystemDisposedException e) { } return eventList; }