private static boolean isObjectType(DeclaredType type) {
    return asTypeElement(type).getQualifiedName().contentEquals("java.lang.Object");
  }
Returns the superclass of {@code type}, with any type parameters bound by {@code type}, or
{@link Optional#absent()} if {@code type} is an interface or {@link Object} or its superclass
is {@link Object}.
common/src/main/java/com/google/auto/common/MoreTypes.java