Move getSurroundingLines from utils to Detector