XBreakpointClassGroup (@NotNull B b, @NotNull Collection<? extends XBreakpointClassGroup> groups) { if (b instanceof XBreakpoint) { Breakpoint javaBreakpoint = BreakpointManager.getJavaBreakpoint((XBreakpoint)b); if (javaBreakpoint == null) { return null; } String className = javaBreakpoint.getShortClassName(); String packageName = javaBreakpoint.getPackageName(); if (className == null) { return null; } for (XBreakpointClassGroup group : groups) { if (group.getClassName().equals(className) && group.getPackageName().equals(packageName)) { return group; } } return new XBreakpointClassGroup(packageName, className); } return null; }