if (elements.length > 0) { IRunnableWithProgress runnable= new IRunnableWithProgress() { public void run(IProgressMonitor pm) throws InterruptedException { doFindTests(elements, result, pm); } }; PlatformUI.getWorkbench().getProgressService().busyCursorWhile(runnable); } return (IType[]) result.toArray(new IType[result.size()]) ;
if (elements.length > 0) { IRunnableWithProgress runnable= new IRunnableWithProgress() { public void run(IProgressMonitor pm) throws InterruptedException { doFindTests(elements, result, pm); } }; context.run(true, true, runnable); } return (IType[]) result.toArray(new IType[result.size()]) ;
	public static IType[] findTests(final Object[] elements) throws InvocationTargetException, InterruptedException{		final Set result= new HashSet();			if (elements.length > 0) {			IRunnableWithProgress runnable= new IRunnableWithProgress() {				public void run(IProgressMonitor pm) throws InterruptedException {					doFindTests(elements, result, pm);				}			};			PlatformUI.getWorkbench().getProgressService().busyCursorWhile(runnable);					}		return (IType[]) result.toArray(new IType[result.size()]) ;	}