void (@NotNull AnActionEvent e) { String groupName = myGroup; if (myNewGroup) { groupName = Messages.showInputDialog(XDebuggerBundle.message("breakpoints.dialog.new.group.name"), XDebuggerBundle.message("breakpoints.dialog.new.group"), AllIcons.Nodes.Folder); if (groupName == null) { return; } } for (BreakpointItem item : myTreeController.getSelectedBreakpoints(true)) { Object breakpoint = item.getBreakpoint(); if (breakpoint instanceof XBreakpointBase) { ((XBreakpointBase<?, ?, ?>)breakpoint).setGroup(groupName); } } myTreeController.rebuildTree(myBreakpointItems); }