Remove deprecation warning from AttributeMethodsMatcher