Bug 65711 [Problems] Problems View takes too long to show
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerList.java
*/
	public static IMarker[] compute(String[] types) throws CoreException {
		
		ArrayList result = new ArrayList();
		IResource input = ResourcesPlugin.getWorkspace().getRoot();
		for (int i = 0; i < types.length; i++) {
			IMarker[] newMarkers = input.findMarkers(types[i], true, IResource.DEPTH_INFINITE);
			result.addAll(Arrays.asList(newMarkers));
		}
		return (IMarker[])result.toArray(new IMarker[result.size()]);
	}
	
	/**
	 * Returns the markers in the list. Read-only.
	 * 
	 * @return an array of markers in the list
	 */
	public ConcreteMarker[] toArray() {
		return markers;
	}
	
	/**
	 * Returns the markers in this list. Read-only.
	 * 
	 * @return the markers in the list
	 */