else if (element instanceof ISourceReference) {
return; }   try { ISourceRange range= null; if (element instanceof ICompilationUnit) range= null; else if (element instanceof IClassFile) range= null; else if (element instanceof ILocalVariable) range= ((ILocalVariable)element).getNameRange(); else if (element instanceof IMember) range= ((IMember)element).getNameRange(); else if (element instanceof ITypeParameter) range= ((ITypeParameter)element).getNameRange(); else if (element instanceof ISourceReference) range= ((ISourceReference)element).getSourceRange();
	public static void revealInEditor(IEditorPart part, IJavaElement element) {		if (element == null)			return;				if (part instanceof JavaEditor)			((JavaEditor) part).setSelection(element);		else if (element instanceof ISourceReference) {						// Support for non-Java editor			try {				ISourceRange range= ((ISourceReference)element).getSourceRange();				if (range != null)					revealInEditor(part, range.getOffset(), range.getLength());			} catch (JavaModelException e) {				// don't reveal			}		}	}