FilterDescriptor desc= new FilterDescriptor(element); if (!descIds.contains(desc.getId())) { result.add(desc); descIds.add(desc.getId());
final FilterDescriptor[] desc= new FilterDescriptor[1]; Platform.run(new SafeRunnable(FilterMessages.getString("FilterDescriptor.filterDescriptionCreationError.message")) { public void run() throws Exception { desc[0]= new FilterDescriptor(element); } });  if (desc[0] != null && !descIds.contains(desc[0].getId())) { result.add(desc[0]); descIds.add(desc[0].getId());
	private static FilterDescriptor[] createFilterDescriptors(IConfigurationElement[] elements) {		List result= new ArrayList(5);		Set descIds= new HashSet(5);		for (int i= 0; i < elements.length; i++) {			IConfigurationElement element= elements[i];			if (FILTER_TAG.equals(element.getName())) {				FilterDescriptor desc= new FilterDescriptor(element);				if (!descIds.contains(desc.getId())) {					result.add(desc);					descIds.add(desc.getId());				}			}		}		Collections.sort(result);		return (FilterDescriptor[])result.toArray(new FilterDescriptor[result.size()]);	}