code: public Set<Label> getLabels() {
          Set<Label> r = new TreeSet<>();
          for (Label l : labels.values()) {
              if(!l.isEmpty())
                  r.add(l);
          }
          return r;
      }
docs: Gets all the active labels in the current system.