Refactoring extract method detection