Replace `getMethods()` with `getDeclaredMethods()`
Merge pull request #104 from jnagels/performance

Replace `getMethods()` with `getDeclaredMethods()`