Add basic scope-aware injection of new method definitions