List<ArchivedProjectTemplate> (Element groupElement) { List<Element> children = groupElement.getChildren(ArchivedProjectTemplate.TEMPLATE); return ContainerUtil.mapNotNull(children, (NullableFunction<Element, ArchivedProjectTemplate>)element -> { if (!checkRequiredPlugins(element)) { return null; } final ModuleType moduleType = ModuleTypeManager.getInstance().findByID(element.getChildText("moduleType")); final String path = element.getChildText("path"); final String description = element.getChildTextTrim("description"); String name = element.getChildTextTrim("name"); RemoteProjectTemplate template = new RemoteProjectTemplate(name, element, moduleType, path, description); template.populateFromElement(element); return template; }); }