Get method reference from current context