Extract private methods parse_file_with_comments