docs: public static IdType of(IBaseResource theResouce) {
      if (theResouce == null) {
        throw new NullPointerException("theResource can not be null");
      } else {
        IIdType retVal = theResouce.getIdElement();
        if (retVal == null) {
          return null;
        } else if (retVal instanceof IdType) {
          return (IdType) retVal;
        } else {
          return new IdType(retVal.getValue());
        }
      }
    }