code: private void printParameterizedType(ParameterizedType parameterizedType)
      throws IOException
    {
      Type rawType = parameterizedType.getRawType();
  
      if (rawType instanceof Class<?>)
        printClass((Class<?>) rawType);
      else
        printType(rawType);
  
      print("<");
  
      Type[] typeParameters = parameterizedType.getActualTypeArguments();
  
      for (int i = 0; i < typeParameters.length; i++) {
        if (i != 0) {
          print(", ");
        }
  
        printType(typeParameters[i]);
      }
  
      print(">");
    }
docs: Prints a parameterized type declaration:
  
  <pre>
  T&lt;X>
  </pre>