detect if a method is a native one