this can be simplified using ``isAnInstanceMethod()``