code: @Override
     public Iterator<TopologyElementCalled> iterator() {
        Iterator<TopologyElementCalled> it = new Iterator<TopologyElementCalled>() {
  
           int currentIndex = 0;
  
           @Override
           public boolean hasNext() {
              return currentIndex < dependences.size();
  
           }
  
           @Override
           public TopologyElementCalled next() {
              TopologyElementCalled currentEl = dependences.get(currentIndex);
              currentIndex++;
              return currentEl;
           }
  
           @Override
           public void remove() {
  
           }
        };
        return it;
     }
docs: ITERATOR //Iterates over names of modules