protected IJavaSearchScope getScope(IType type) throws JavaModelException { ICompilationUnit cu= type.getCompilationUnit(); if (cu != null && cu.isWorkingCopy()) { type= (IType)cu.getOriginal(type); } return SearchEngine.createHierarchyScope(type);
protected IJavaSearchScope getScope(IJavaElement element) throws JavaModelException { if (element instanceof IType) { IType type= (IType)element; ICompilationUnit cu= type.getCompilationUnit(); if (cu != null && cu.isWorkingCopy()) { type= (IType)cu.getOriginal(type); } return SearchEngine.createHierarchyScope(type); } else return super.getScope(element);
	protected IJavaSearchScope getScope(IType type) throws JavaModelException {		ICompilationUnit cu= type.getCompilationUnit();			if (cu != null && cu.isWorkingCopy()) {				type= (IType)cu.getOriginal(type);			}		return SearchEngine.createHierarchyScope(type);	}