Reviewed-by: jjg, vromero
Bad logic for checking most specific method reference type Reviewed-by: jjg