private void addReferenceUpdatesAndImports(TextChangeManager manager, IProgressMonitor pm, SearchResultGroup[] resultGroups) throws CoreException {
private Set addReferenceUpdatesAndImports(TextChangeManager manager, IProgressMonitor pm, SearchResultGroup[] resultGroups) throws CoreException {
	private void addReferenceUpdatesAndImports(TextChangeManager manager, IProgressMonitor pm, SearchResultGroup[] resultGroups) throws CoreException {		Set nodeSet= getNodesToUpdate(resultGroups, pm); //ASTNodes		Set updatedCus= new HashSet(0);		for (Iterator iter= nodeSet.iterator(); iter.hasNext();) {			ASTNode node= (ASTNode) iter.next();			ICompilationUnit cu= getCompilationUnit(node);			manager.get(cu).addTextEdit("Update reference", createTypeUpdateEdit(new SourceRange(node)));				updatedCus.add(cu);		}		for (Iterator iter= updatedCus.iterator(); iter.hasNext();) {			ICompilationUnit cu= (ICompilationUnit) iter.next();			if (needsImport(cu))				addSupertypeImport(manager, cu);					}	}