getMethod and getStaticMethod return method with correct signature