Extracted duplicate code into `CompleteCurrentLineGroup` method