SortedBugCollection resultCollection = new SortedBugCollection(); resultCollection.addAll(result);
SortedBugCollection originator = operation.perform(result, origCollection, newCollection);   Collection<BugInstance> selected = new LinkedList<BugInstance>(); BugCollection.cloneAll(selected, result);     SortedBugCollection resultCollection = originator.duplicate();   resultCollection.clearBugInstances(); resultCollection.addAll(selected);
	public SortedBugCollection performSetOperation(SetOperation operation) {		TreeSet<BugInstance> result = new TreeSet<BugInstance>(VersionInsensitiveBugComparator.instance());		operation.perform(result, origCollection, newCollection);				SortedBugCollection resultCollection = new SortedBugCollection();		resultCollection.addAll(result);				return resultCollection;	}