Bug 65711 [Problems] Problems View takes too long to show
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
} else {
				resourcesToSearch.add(next);
			}
		}
		
		
		for (int resourceIdx = 0; resourceIdx < resources.length; resourceIdx++) {
			iter = typesToSearch.iterator(); 
			
			IResource resource = resources[resourceIdx];
			
			
			if (!resource.isAccessible()) {
				continue;
			}
			
			if (depth == IResource.DEPTH_INFINITE) {
				 
				IResource parent = resource.getParent();
				boolean found = false;
				while (parent != null) {
					if (resourcesToSearch.contains(parent)) {
						found = true;
					}
						
					parent = parent.getParent();
				}