code: public int firstIndexOf(CqlIdentifier id) {
      Integer index = byId.get(id);
      return (index == null) ? -1 : index;
    }
docs: Returns the first occurrence of a given identifier, or -1 if it's not in the list.