Bug 65711 [Problems] Problems View takes too long to show
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerList.java
* @return a map of IMarker onto ConcreteMarker, containing all the ConcreteMarkers in the list
	 */
	private Map getMarkerMap() {
		if (markerTable == null) {
			markerTable = new HashMap();
			
			for (int idx = 0; idx < markers.length; idx++) {
				ConcreteMarker marker = markers[idx];
				markerTable.put(marker.getMarker(), marker);
			}
		}
		
		return markerTable;
	}
	
	/**
	 * Returns an existing marker from the list that is associated with
	 * the given IMarker
	 *  
	 * @param toFind the IMarker to lookup in the list
	 * @return the ConcreteMarker that corresponds to the given IMarker
	 */
	public ConcreteMarker getMarker(IMarker toFind) {
		return (ConcreteMarker) getMarkerMap().get(toFind);
	}
	
	public static ConcreteMarker createMarker(IMarker marker) throws CoreException {
		if (marker.isSubtypeOf(IMarker.TASK)) {
			return new TaskMarker(marker);
		} else if (marker.isSubtypeOf(IMarker.BOOKMARK)) {