complete IntroduceForeignMethod.