public static TypeVariable asTypeVariable(TypeMirror maybeTypeVariable) {
    return maybeTypeVariable.accept(TypeVariableVisitor.INSTANCE, null);
  }
Returns a {@link TypeVariable} if the {@link TypeMirror} represents a type variable or throws
an {@link IllegalArgumentException}.
common/src/main/java/com/google/auto/common/MoreTypes.java