private void determineImportDifferences(String[] imports, Set oldSingleImports, Set oldDemandImports) { ArrayList importsAdded= new ArrayList(Arrays.asList(imports));
private void determineImportDifferences(ImportsStructure importsStructure, Set oldSingleImports, Set oldDemandImports) { ArrayList importsAdded= new ArrayList(); importsAdded.addAll(Arrays.asList(importsStructure.getCreatedImports())); importsAdded.addAll(Arrays.asList(importsStructure.getCreatedStaticImports()));
	private void determineImportDifferences(String[] imports, Set oldSingleImports, Set oldDemandImports) {  		ArrayList importsAdded= new ArrayList(Arrays.asList(imports));				Object[] content= oldSingleImports.toArray();	    for (int i= 0; i < content.length; i++) {	        String importName= (String) content[i];	        if (importsAdded.remove(importName))	            oldSingleImports.remove(importName);	    }	    content= oldDemandImports.toArray();	    for (int i= 0; i < content.length; i++) {	        String importName= (String) content[i]; 	        if (importsAdded.remove(importName + ".*")) //$NON-NLS-1$	            oldDemandImports.remove(importName);	    }	    fNumberOfImportsAdded= importsAdded.size();	    fNumberOfImportsRemoved= oldSingleImports.size() + oldDemandImports.size();	    	}