docs: public void setFragments(List<XmlFragment> fragments) {
          assertNotNull(fragments);
          this.fragments.clear();
          for (XmlFragment fragment : fragments)
              addFragment(fragment);
      }