for (BugPattern pattern : factory.getReportedBugPatterns()){
for (Iterator it = factory.getReportedBugPatterns().iterator(); it.hasNext();){ BugPattern pattern = (BugPattern) it.next(); for (Iterator i = categories.iterator(); i.hasNext();){ if (pattern.getCategory().equals(i.next())) return true; } } /*for (BugPattern pattern : factory.getReportedBugPatterns()){
	private boolean inCategory(DetectorFactory factory, List<String> categories)	{		for (BugPattern pattern : factory.getReportedBugPatterns()){			for (String category : categories){				if (pattern.getCategory().equals(category))					return true;			}		}		return false;				}