Merge: #21091: make is_attachment a method.