void (Collection<? extends BreakpointItem> items) { List<BreakpointItem> selectedBreakpoints = getSelectedBreakpoints(false); TreePath path = myTreeView.getSelectionPath(); buildTree(items); if (myTreeView.getRowForPath(path) == -1 && !selectedBreakpoints.isEmpty()) { selectBreakpointItem(selectedBreakpoints.get(0), path); } else { selectBreakpointItem(null, path); } }