title: Reflection - Get the size of List<SomeClass>
body: <p>Help me deal with reflection. There is a <code>SuperClass</code> class and a <code>SomeClass</code>:</p>
  <pre class="lang-java prettyprint-override"><code>public class SuperClass {
      private List&lt;SomeClass&gt; listClass;
      
      public SuperClass(){
          this.listClass = new ArrayList&lt;&gt;();
      }
  
      // ... getter and setter listClass
  }
  
  public class SomeClass {}
  </code></pre>
  <p>How can I use reflection to get the size of the <code>listClass</code> property of the <code>SuperClass</code> ? Preferably by calling the <code>getListClass</code> method.</p>