} else if (groupBy == GROUP_BY_BUG_CATEGORY) { groupName = I18N.instance().getBugCategoryDescription(member.getBugPattern().getCategory());
} else if (groupBy == GROUP_BY_BUG_CATEGORY) { BugPattern pattern = member.getBugPattern(); if (pattern == null) { if (FindBugs.DEBUG) System.out.println("Unknown bug pattern " + member.getType()); groupName = "Unknown category"; } else { groupName = I18N.instance().getBugCategoryDescription(pattern.getCategory()); }
			public void startGroup(BugInstance member) {				String groupName;				if (groupBy == GROUP_BY_CLASS)					groupName = member.getPrimaryClass().getClassName();				else if (groupBy == GROUP_BY_PACKAGE) {					groupName = member.getPrimaryClass().getPackageName();					if (groupName.equals(""))						groupName = "Unnamed package";				} else if (groupBy == GROUP_BY_BUG_TYPE) {					String desc = member.toString();					String shortBugType = desc.substring(0, desc.indexOf(':'));					String bugTypeDescription = I18N.instance().getBugTypeDescription(shortBugType);					groupName = shortBugType + ": " + bugTypeDescription;								} else if (groupBy == GROUP_BY_BUG_CATEGORY) {										groupName = I18N.instance().getBugCategoryDescription(member.getBugPattern().getCategory());				} else					throw new IllegalStateException("Unknown sort order: " + groupBy);				currentGroup = new BugInstanceGroup(groupBy, groupName);				currentGroupNode = new DefaultMutableTreeNode(currentGroup);				bugTreeModel.insertNodeInto(currentGroupNode, bugRootNode, bugRootNode.getChildCount());								insertIntoGroup(member);			}