Implement detectors's prcedure

cleanup TwoFingerGenericDetector.java