code: static Set<String> getTypeVariableNames(TypeMirror type) {
      Set<String> names = new HashSet<>();
      type.accept(TypeVariableNameVisitor.INSTANCE, names);
      return names;
    }
docs: Returns the complete set of type variable names used in {@code type}.