if (accuracy == POTENTIAL_MATCH && SearchUI.arePotentialMatchesIgnored())
if (enclosingElement == null || accuracy == POTENTIAL_MATCH && SearchUI.arePotentialMatchesIgnored())
	public void accept(IResource resource, int start, int end, IJavaElement enclosingElement, int accuracy) throws CoreException {		if (accuracy == POTENTIAL_MATCH && SearchUI.arePotentialMatchesIgnored())			return;				IMarker marker= resource.createMarker(SearchUI.SEARCH_MARKER);		HashMap attributes;		Object groupKey= enclosingElement;		attributes= new HashMap(7);		if (accuracy == POTENTIAL_MATCH) {			fPotentialMatchCount++;			attributes.put(SearchUI.POTENTIAL_MATCH, POTENTIAL_MATCH_VALUE);			if (groupKey == null)				groupKey= "?:null"; //$NON-NLS-1$			else				groupKey= "?:" + enclosingElement.getHandleIdentifier(); //$NON-NLS-1$		}					ICompilationUnit cu= SearchUtil.findCompilationUnit(enclosingElement);		if (cu != null && cu.isWorkingCopy())			attributes.put(IJavaSearchUIConstants.ATT_IS_WORKING_COPY, new Boolean(true)); //$NON-NLS-1$					JavaCore.addJavaElementMarkerAttributes(attributes, enclosingElement);		attributes.put(IJavaSearchUIConstants.ATT_JE_HANDLE_ID, enclosingElement.getHandleIdentifier());		attributes.put(IMarker.CHAR_START, new Integer(Math.max(start, 0)));		attributes.put(IMarker.CHAR_END, new Integer(Math.max(end, 0)));		if (enclosingElement instanceof IMember && ((IMember)enclosingElement).isBinary())			attributes.put(IWorkbenchPage.EDITOR_ID_ATTR, JavaUI.ID_CF_EDITOR);		else			attributes.put(IWorkbenchPage.EDITOR_ID_ATTR, JavaUI.ID_CU_EDITOR);		marker.setAttributes(attributes);		fView.addMatch(enclosingElement.getElementName(), groupKey, resource, marker);		fMatchCount++;		if (!getProgressMonitor().isCanceled() && System.currentTimeMillis() - fLastUpdateTime > 1000) {			getProgressMonitor().subTask(getFormattedMatchesString(fMatchCount));			fLastUpdateTime= System.currentTimeMillis();		}	}