if (map.contains(key)) {
if (!map.add(key)) {
				public IStatus validate(Object[] selection) {					StatusInfo state = new StatusInfo();					if (selection != null && selection.length > 0) {						HashSet map = new HashSet(selection.length);						for (int i = 0; i < selection.length; i++) {							Object key = selection[i];							if (selection[i] instanceof Methods2Field) {								try {									key = createSignatureKey(((Methods2Field) selection[i]).fMethod);								} catch (JavaModelException e) {									return new StatusInfo(StatusInfo.ERROR, e.toString());								}							}							if (map.contains(key)) { //$NON-NLS-1$								state = new StatusInfo(IStatus.ERROR, ActionMessages.getString("AddDelegateMethodsAction.duplicate_methods")); //$NON-NLS-1$								break;							}						}					}					return state;				}