private TestReferenceCollector doSearchTestMethods(IJavaElement element, IProgressMonitor pm) throws JavaModelException{ IType type= element.getJavaProject().findType(JUnitPlugin.TEST_INTERFACE_NAME); IJavaSearchScope scope= SearchEngine.createHierarchyScope(type);
private TestReferenceCollector doSearchTestMethods(IJavaElement element, IType testType, IProgressMonitor pm) throws JavaModelException{ IJavaSearchScope scope= SearchEngine.createHierarchyScope(testType);
	private TestReferenceCollector doSearchTestMethods(IJavaElement element, IProgressMonitor pm) throws JavaModelException{		IType type= element.getJavaProject().findType(JUnitPlugin.TEST_INTERFACE_NAME);		IJavaSearchScope scope= SearchEngine.createHierarchyScope(type);		TestReferenceCollector collector= new TestReferenceCollector(pm);		new SearchEngine().search(ResourcesPlugin.getWorkspace(), element, IJavaSearchConstants.REFERENCES, scope, collector);		return collector;	}