void (final @NotNull List<? extends DomElement> elements, final Set<? super String> existingNames) { for (DomElement name : elements) { existingNames.add(name.getGenericInfo().getElementName(name)); } }