title: Get type of a generic parameter in Java with reflection
body: <p>Is it possible to get the type of a generic parameter?</p>
  
  <p>An example:</p>
  
  <pre><code>public final class Voodoo {
      public static void chill(List&lt;?&gt; aListWithTypeSpiderMan) {
          // Here I'd like to get the Class-Object 'SpiderMan'
          Class typeOfTheList = ???;
      }
  
      public static void main(String... args) {
          chill(new ArrayList&lt;SpiderMan&gt;());
      }
  }
  </code></pre>