In my opinion, I think the best way would be to end comments prematurely and for large files, I don't think there's a smart tool to do the job.