@Override
    public Boolean visitDeclared(DeclaredType t, Void p) {
      return t.getTypeArguments().stream().anyMatch(CastingUncheckedVisitor::uncheckedTypeArgument);
    }
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