I'm not sure `doc.ProjectItem` could be null in some case.