if (element != null && part instanceof JavaEditor) {
if (part == null) return;   IEditorSite site= part.getEditorSite(); if (site instanceof MultiPageEditorSite) part= ((MultiPageEditorSite)site).getEditor();  if (element != null && part instanceof JavaEditor)
	public static void revealInEditor(IEditorPart part, IJavaElement element) {		if (element != null && part instanceof JavaEditor) {			((JavaEditor) part).setSelection(element);		}	}