Set<String> oldWords = matching.getTextAnnotationWords(); Set<String> newWords = bugInstance.getTextAnnotationWords(); newWords.removeAll(oldWords); if (newWords.isEmpty()) continue;
	public SortedBugCollection execute() {		DetectorFactoryCollection.instance(); // as a side effect, loads detector plugins		SortedBugCollection result = new SortedBugCollection();		for (Iterator<BugInstance> i = origCollection.iterator(); i.hasNext(); ) {			result.add(i.next());		}		for (Iterator<BugInstance> i = newCollection.iterator(); i.hasNext(); ) {			BugInstance bugInstance = i.next();			BugInstance matching = origCollection.getMatching(bugInstance);			if (matching == null)				result.add(bugInstance);			else {				// Combine the annotations				StringBuffer buf = new StringBuffer();				buf.append(matching.getAnnotationText());				buf.append('\n');				buf.append(bugInstance.getAnnotationText());				bugInstance.setAnnotationText(buf.toString());				result.remove(matching);				result.add(bugInstance);			}		}		return result;	}