collect
open fun <T : ProcessedCategory?> collect(categories: Iterable<T>): @Unmodifiable LinkedHashMap<String, T>(source)
Collect a list of categories into a map that can be used by MoulConfigEditor. Also checks that all ids are unique and all categories with a parent are ordered correctly