private static boolean isJavaLangObject(TypeMirror type) {
      if (type.getKind() != TypeKind.DECLARED) {
        return false;
      }
      TypeElement typeElement = asTypeElement(type);
      return typeElement.getQualifiedName().contentEquals("java.lang.Object");
    }
Visitor that tells whether a type is erased, in the sense of {@link #castIsUnchecked}. Each
visitX method returns true if its input parameter is true or if the type being visited is
erased.
common/src/main/java/com/google/auto/common/MoreTypes.java