}
private Collection<Breakpoint> getBreakpointsHit(EventNotification response,
BreakEventBody breakEventBody) {
List<Long> breakpointIdsArray = breakEventBody.breakpoints();
BreakpointManager breakpointManager = getDebugSession().getBreakpointManager();
if (breakpointIdsArray == null) {
// Suspended on step end.
return Collections.<Breakpoint> emptySet();
}
Collection<Breakpoint> breakpointsHit = new ArrayList<Breakpoint>(breakpointIdsArray.size());
for (int i = 0, size = breakpointIdsArray.size(); i < size; ++i) {
Breakpoint existingBp = breakpointManager.getBreakpoint(breakpointIdsArray.get(i));
if (existingBp != null) {
breakpointsHit.add(existingBp);
}
}
return breakpointsHit;