public void addElements(@Nullable Iterable<? extends Object> elements) {
   if (elements != null) {
     for (Object element : elements) {
       if (element instanceof Nameable) {
         Nameable namedElement = (Nameable) element;
         String elementName = namedElement.getName();
         if (elementName != null) {
           addElement(elementName, namedElement);
         }
       }
     }
   }
 }
 public void addNamedElement(/*@NonNull*/ Nameable namedElement) {
   if (namedElement == null) {
     return;
   }
   String elementName = namedElement.getName();
   if (elementName != null) {
     addElement(elementName, namedElement);
   }
 }