detect extract method from all commits