docs: public static SortedSet<ClassLabel> getClassLabels(Relation<? extends ClassLabel> database) {
      SortedSet<ClassLabel> labels = new TreeSet<>();
      for(DBIDIter it = database.iterDBIDs(); it.valid(); it.advance()) {
        labels.add(database.get(it));
      }
      return labels;
    }