Quick fix for extract method detection

WIP pull request for #19 on kenja.