}
	public boolean isShownInEditor(Match match, IEditorPart editor) {		IEditorInput editorInput= editor.getEditorInput();		if (match.getElement() instanceof IJavaElement) {			IJavaElement je= (IJavaElement) match.getElement();			if (editorInput instanceof IFileEditorInput) {				IFile inputFile= ((IFileEditorInput)editorInput).getFile();				try {					return inputFile.equals(je.getUnderlyingResource());				} catch (JavaModelException e) {					return false;				}			} else if (editorInput instanceof IClassFileEditorInput) {				return ((IClassFileEditorInput)editorInput).getClassFile().equals(je.getAncestor(IJavaElement.CLASS_FILE));			}		} else if (match.getElement() instanceof IFile) {			if (editorInput instanceof IFileEditorInput) {				return ((IFileEditorInput)editorInput).getFile().equals(match.getElement());			}		}		return false;	}