I'm trying to understand the possible causes of a cavitary lung lesion and what diseases it might indicate. Can you help clarify which of these are contagious and which ones aren't? Are all lung-related diseases something I should be worried about spreading to others?