Obstructive sleep apnea is common in idiopathic pulmonary fibrosis.