Bug 44443 [Tasks] Problems View should 'filter' more efficiently
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
if (elements == null)	
			return new Object[0];
			
		List filteredElements = new ArrayList();
		
		for (int i = 0; i < elements.length; i++) {
			Object element = elements[i];
			
			if (select(element))
				filteredElements.add(element); 
		}
		
		return filteredElements.toArray();
	}
	public boolean select(Object item) {
		if (!isEnabled()) {
			return true;
		}
		
		if (!(item instanceof IMarker))
			return false;
		IMarker marker = (IMarker) item;
		return selectByType(marker) && selectBySelection(marker);
	}
	
	private boolean selectByType(IMarker marker) {
		String type;
		try {
			type = marker.getType();
		}