code: protected void accumulateLabel(String path) {
          String name = getLabel(path);
          if (!labels.contains(name))
              labels.add(name);
      }
docs: Accumulate the label from the path
  
  @param path the path to get the label from