code: public String getSignature(TypeMirror type) {
      StringBuilder sb = new StringBuilder();
      buildTypeSignature(type, sb);
      return sb.toString();
    }
docs: Generates a unique signature for this type that can be used as a key.