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