result.add(element); count++;
if (!foundLRUCategories.contains(element)) { result.add(element); count++; }
	private boolean getMenuCategories(List result) {		final HashSet/*<String>*/ categories= new HashSet();		final HashSet/*<String>*/ foundLRUCategories= new HashSet();		final boolean hasUncategorizedMember[]= new boolean[] {false};		for (int i= 0; i < fInputElement.length && !(hasUncategorizedMember[0] && foundLRUCategories.size() >= MAX_NUMBER_OF_CATEGORIES_IN_MENU); i++) {			collectCategories(fInputElement[i], new IResultCollector() {				public boolean accept(String[] cats) {					if (cats.length > 0) {						for (int j= 0; j < cats.length; j++) {							String category= cats[j];							categories.add(category);							if (fLRUList.containsKey(category)) {								foundLRUCategories.add(category);							}							}					} else {						hasUncategorizedMember[0]= true;					}					return hasUncategorizedMember[0] && foundLRUCategories.size() >= MAX_NUMBER_OF_CATEGORIES_IN_MENU;				}			});		}		int count= 0;		for (Iterator iter= foundLRUCategories.iterator(); iter.hasNext();) {			String element= (String)iter.next();			result.add(element);			count++;		}		if (count < MAX_NUMBER_OF_CATEGORIES_IN_MENU) {			List sortedCategories= new ArrayList(categories);			Collections.sort(sortedCategories, Collator.getInstance());			for (Iterator iter= sortedCategories.iterator(); iter.hasNext() && count < MAX_NUMBER_OF_CATEGORIES_IN_MENU;) {				String element= (String)iter.next();				result.add(element);				count++;			}		}		return hasUncategorizedMember[0];	}