XBreakpointCustomGroup (@NotNull final B breakpoint, @NotNull final Collection<? extends XBreakpointCustomGroup> groups) { if (!(breakpoint instanceof XBreakpointBase)) { return null; } String name = ((XBreakpointBase<?, ?, ?>)breakpoint).getGroup(); if (StringUtil.isEmpty(name)) { return null; } return new XBreakpointCustomGroup(name, ((XBreakpointBase<?, ?, ?>)breakpoint).getProject()); }