title: Using .getDeclaredMethod to get a method from a class extending another
body: <p>So lets say I am trying to get a method from a class using <code>Method m = plugin.getClass().getDeclaredMethod("getFile");</code>. </p>
  
  <p>But that <code>plugin</code> class is extending another class, which is the one with the <code>getFile</code> method. I am not quite sure if that would make it throw the <code>NoSuchMethodException</code> exception or not. </p>
  
  <p>I know the class that the <code>plugin</code> is extending has the getFile method.
  Sorry if I sound confusing, a bit tired.</p>