collector, new MatchLocator(pattern, ""));
collector, new MatchLocator(pattern, true, false));
	public static void process(QualifiedNameSearchResult result, String pattern, String newValue, String filePatterns, IProject root, IProgressMonitor monitor) throws JavaModelException {		if (filePatterns == null || filePatterns.length() == 0) {			// Eat progress.			monitor.beginTask("", 1); //$NON-NLS-1$			monitor.worked(1);			return;		}		Assert.isNotNull(pattern);		Assert.isNotNull(newValue);		Assert.isNotNull(root);		if (monitor == null)			monitor= new NullProgressMonitor();		ResultCollector collector= new ResultCollector(result, newValue, monitor);		TextSearchEngine engine= new TextSearchEngine();		engine.search(ResourcesPlugin.getWorkspace(), 			createScope(filePatterns, root), 			collector, new MatchLocator(pattern, "")); //$NON-NLS-1$	}