void (Element valueElement, List<? super CopyrightProfile> profiles) { CopyrightProfile profile = new CopyrightProfile(); boolean extract = false; for (Element l : valueElement.getChildren("LanguageOptions")) { if (l.getAttributeValue("name").equals("__TEMPLATE__")) { for (Element o1 : l.getChildren("option")) { extract |= extract(profile, o1); } break; } } if (extract) profiles.add(profile); }