title: How to get annotations used on generic type parameters?
body: <p>Java's reflection API gives us almost all information about our source code. However, no matter how much I tried, couldn't find a solution for my specific problem.</p>
  <p>I have a class like this:</p>
  <pre><code>public class SomeClass
  {
  
      private String someField;
  
      private int someOtherField;
  
      private List&lt;@NotNull String&gt; someCollectionField;
  
  }
  </code></pre>
  <p>I iterate all fields of this class via reflection, and try to get <code>@NotNull</code> annotation used in <code>List&lt;String&gt;</code>, but it seems it's impossible using reflection.</p>
  <p>Is there any way I can do this?</p>