detect lvalue methods without loading B