Bug 65711 [Problems] Problems View takes too long to show
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
try {
					addResourcesAndChildren(result, cont.members());
				} catch (CoreException e) {
					
				}
			}
			
		}
	}
		
	/**
	 * Returns the set of projects that contain the given set of resources.
	 * 
	 * @param resources
	 * @return
	 */
	static IProject[] getProjects(IResource[] resources) {
		if (resources == null) {
			return new IProject[0];
		}
	
		Collection projects = getProjectsAsCollection(resources);
		
		return (IProject[])projects.toArray(new IProject[projects.size()]);
	}
	
	static Collection getProjectsAsCollection(IResource[] resources) {
		HashSet projects = new HashSet();
		
		for (int idx = 0; idx < resources.length; idx++) {