code: public void parseActivities(List<Element> activityElements, Element parentElement, ScopeImpl scopeElement) {
      for (Element activityElement : activityElements) {
        parseActivity(activityElement, parentElement, scopeElement);
      }
    }
docs: Parses the activities of a certain level in the process (process,
  subprocess or another scope).
  
  @param activityElements
  The list of activities to be parsed. This list may be filtered before.
  @param parentElement
  The 'parent' element that contains the activities (process, subprocess).
  @param scopeElement
  The {@link ScopeImpl} to which the activities must be added.