SI-8437 macro runtime now also picks inherited macro implementations

Previously it didn't matter much that we used Class.getDeclaredMethods
instead of just getMethods, but with the introduction of macro bundles
it can make a difference which is fixed in this commit.

I'd also like to note that the fact that getMethods only returns public
methods and getDeclaredMethods also sees private methods, doesn't make
a difference, because macro implementations must be public.
Merge pull request #3651 from xeno-by/ticket/8437

SI-8437 macro runtime now also picks inherited macro implementations