if (!categorySet.isEmpty()) { BugPattern pattern = warning.getBugPattern(); if (pattern == null || !categorySet.contains(pattern.getCategory())) continue; }
BugPattern pattern = warning.getBugPattern();  if (pattern == null && (!categorySet.isEmpty() || !abbrevSet.isEmpty())) continue;  if (!categorySet.isEmpty() && !categorySet.contains(pattern.getCategory())) continue;  if (!abbrevSet.isEmpty() && !abbrevSet.contains(pattern.getAbbrev())) continue;
	public CountBugs2 execute() {		for (Iterator<BugInstance> i = bugCollection.iterator(); i.hasNext();) {			BugInstance warning = i.next();			if (!categorySet.isEmpty()) {				BugPattern pattern = warning.getBugPattern();				if (pattern == null || !categorySet.contains(pattern.getCategory()))					continue;			}			if (warning.getPriority() > minPriority)				continue;						++count;		}		return this;	}