static Catalog findImportedCatalogsWith(Catalog catalog, Function<Catalog, Catalog> accept) {
		for (CatalogRef cr : catalog.catalogs.values()) {
			if (cr.importItems == Boolean.TRUE) {
				try {
					Catalog cat = Catalog.getByRef(cr.catalogRef);
					Catalog result = accept.apply(cat);
					if (result != null)
						return result;
				} catch (Exception e) {
					Util.verboseMsg("Unable to read catalog " + cr.catalogRef + " because " + e);
				}
			}
		}
		return null;
	}
Returns a Catalog containing all the aliases from local catalog files merged
into one. This follows the system where aliases that are "nearest" have
priority.

@param includeImplicits Determines if the implicit catalogs should be merged
                        or not
@return a Catalog object
src/main/java/dev/jbang/catalog/Catalog.java