Fixed generating method calls from same module when inlining.
Reused utility method getDirectMember.