FileIncludeInfo[] (XmlFile xmlFile) { return HtmlUtil.getIncludedPathsElements(xmlFile).stream() .filter(el -> el != null && !StringUtil.isEmptyOrSpaces(el.getValue())) .map(el -> new FileIncludeInfo(el.getValue())).toArray(FileIncludeInfo[]::new); }