Make NodeDecorator generic, add and enable GetMethodContext and associated tests