void initSelection(Collection<BreakpointItem> breakpoints) { boolean found = false; for (BreakpointItem breakpoint : breakpoints) { if (breakpoint.getBreakpoint() == myInitialBreakpoint) { myTreeController.selectBreakpointItem(breakpoint, null); found = true; break; } } if (!found && !breakpoints.isEmpty()) { myTreeController.selectFirstBreakpointItem(); } }