private List getOverlapping(List items, Interval searchInterval)
{
List result = new ArrayList();
for (int i = 0; i < items.size(); i++) {
Interval interval = (Interval) items.get(i);
if (interval.overlaps(searchInterval)) result.add(interval);
}
return result;
}
}