code: public Reference addUsed() { //3
        Reference t = new Reference();
        if (this.used == null)
          this.used = new ArrayList<Reference>();
        this.used.add(t);
        return t;
      }
docs: syntactic sugar