List<DomFileElement<T>> (M model) { final ArrayList<DomFileElement<T>> list = new ArrayList<>(model.getConfigFiles().size()); for (XmlFile configFile : model.getConfigFiles()) { final DomFileElement<T> element = DomManager.getDomManager(configFile.getProject()).getFileElement(configFile, myClass); if (element != null) { list.add(element); } } return list; }