List<String> (@NotNull Element config) { Element excludesElement = config.getChild("classpathDependencyExcludes"); if (excludesElement == null) { return Collections.emptyList(); } String rawText = excludesElement.getTextTrim(); List<String> excludes = new ArrayList<>(); if (!rawText.isEmpty()) { StreamEx.split(rawText, ',').map(String::trim).into(excludes); } for (Element child : excludesElement.getChildren()) { String name = child.getName(); if (name != null && EXCLUDE_SUBTAG_NAMES.contains(name)) { String excludeItem = child.getTextTrim(); if (!excludeItem.isEmpty()) { StreamEx.split(excludeItem, ',').map(String::trim).into(excludes); } } } return excludes; }