ArrayList<MavenArchetype> (ArchetypeCatalog archetypeCatalog) { ArrayList<MavenArchetype> result = new ArrayList<>(archetypeCatalog.getArchetypes().size()); for (Archetype each : archetypeCatalog.getArchetypes()) { result.add(Maven3ModelConverter.convertArchetype(each)); } return result; }