*/
public List<IPackage> getPackages(IPackage thePackage, List<IPackage> packageList, ModelFilter<IPackage> filter) {
INamedElement[] namedElements = thePackage.getOwnedElements();
for (INamedElement namedElement : namedElements) {
if (namedElement instanceof IPackage) {
IPackage p = (IPackage) namedElement;
if (filter.isEnable(p)) {
packageList.add(p);
getPackages(p, packageList, filter);
}
}