fix issue where getMethodContents was calling declaring classes filename causing issues lookingup methods of traits