Bug 73975 Search View displays potential match instead of accurate one [search]
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/SearchLabelProvider.java
}
	public AppearanceAwareLabelProvider getLabelProvider() {
		return fLabelProvider;
	}
	public Color getForeground(Object element) {
		if (SearchPreferencePage.arePotentialMatchesEmphasized()) {
			if (hasPotentialMatches(element))
				return getForegroundColor();
		}
		if (fLabelProvider != null)
			return fLabelProvider.getForeground(element);
		return null;
	}
	protected boolean hasPotentialMatches(Object element) {
		AbstractTextSearchResult result= fPage.getInput();
		if (result != null) {
			Match[] matches= result.getMatches(element);
			for (int i = 0; i < matches.length; i++) {
				if ((matches[i]) instanceof JavaElementMatch) {
					if (((JavaElementMatch)matches[i]).getAccuracy() == SearchMatch.A_INACCURATE)
						return true;
				}
			}
		}
		return false;
	}
	public Color getBackground(Object element) {
		if (fLabelProvider != null)
			return fLabelProvider.getBackground(element);
		return null;