use the official interface for looking up a method

that way the JIT produces much better code for that