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