delete(file, getNonFields(refs)); delete(getFields(refs));
pm.beginTask("", refs.length);  ISourceReference[] nonFields= getNonFields(refs); delete(file, nonFields, new SubProgressMonitor(pm, nonFields.length));  IField[] fields= getFields(refs); delete(fields, new SubProgressMonitor(pm, fields.length));
	private static void deleteAll(Map mapping, IFile file) throws CoreException {		List l= (List)mapping.get(file);		ISourceReference[] refs= (ISourceReference[]) l.toArray(new ISourceReference[l.size()]);		delete(file, getNonFields(refs));		delete(getFields(refs));	}