question: private Set collectUniqueResourcesForChanges ( final PendingChange [ ] changes ) { Check . notNull ( changes , "changes" ) ; final Set uniqueResources = new HashSet ( ) ; for ( int i = 0 ; i < changes . length ; i ++ ) { final PendingChange change = changes [ i ] ; final String localPath = change . getLocalItem ( ) ; if ( localPath == null || localPath . length ( ) == 0 ) { continue ; } final IResource resource = getAreaResourceForLocalPath ( localPath ) ; if ( resource != null ) { uniqueResources . add ( resource ) ; } } return uniqueResources ; }
target:  Gets the resources that correspond to the given changes at the configured area (file, project, etc.) and puts them in the given list. If the change does not have an Eclipse resource, it is ignored. <p> If the area to check is wider than file (for instance, project), multiple changes in a single project result in one project resource being added to the resource list.