title: Invoking Method when Parmaeter is instance of another class - Java
body: <p>Ill try to make it short. 
  I want to iterate through the methods of a class via "getMethods()". Now when the method has a Parameter which is an instance of the "Event" class, it should be invoked.</p>
  
  <p>Example Method:</p>
  
  <pre><code>private void onEvent(ExampleEvent event) {...]
  </code></pre>
  
  <p>"ExampleEvent" is an instance of the "Event" class.</p>
  
  <p>Help is appreciated!</p>