Add `methodswith` for #1762.

Second try...