if (isEssential(object) || filter(toBeFiltered).length == 1)
if(object instanceof LogicalPackage) { if(filterLogicalPackages((LogicalPackage)object)) list.add(object); } else if (isEssential(object) || filter(toBeFiltered).length == 1)
	protected Object[] getFilteredChildren(Object parent) {		List list= new ArrayList();		Object[] result= getRawChildren(parent);		if (result != null)	{			Object[] toBeFiltered= new Object[1];			for (int i= 0; i < result.length; i++) {				Object object= result[i];				toBeFiltered[0]= object;				if (isEssential(object) || filter(toBeFiltered).length == 1)					list.add(object);			}		}		return list.toArray();	}