
Update `MainMethod` to search from the bottom of the stack rather than the start. Prior to this commit, an incorrect `main` method would be found if more than one `main` was in the stack. Fixes gh-35214
Update `MainMethod` to search from the bottom of the stack rather than the start. Prior to this commit, an incorrect `main` method would be found if more than one `main` was in the stack. Fixes gh-35214