A 40-year-old man presented with repeated episodes of bronchospasm and hemoptysis. Chest X-ray revealed perihilar bronchiectasis. The most likely diagnosis is:
Sarcoidosis Idiopathic pulmonary fibrosis Extrinsic allergic alveolitis Bronchopulmonary aspergillosis