     func plistKeyAndValue(proj _: PBXProj, reference: String) -> (key: CommentedString, value: PlistValue) {
         var dictionary: [CommentedString: PlistValue] = [:]
         dictionary["isa"] = .string(CommentedString(PBXContainerItemProxy.isa))
-        dictionary["containerPortal"] = .string(CommentedString(containerPortalReference.value, comment: "Project object"))
+        dictionary["containerPortal"] = .string(CommentedString(containerPortalReference.value, comment: isContainerPortalFileReference ? containerPortalAsFileReference.name : "Project object"))
         if let proxyType = proxyType {
             dictionary["proxyType"] = .string(CommentedString("\(proxyType.rawValue)"))
         }

        }
    }

    /// Element remote info.
    public var remoteInfo: String?

    /// Initializes the container item proxy with its attributes.
    ///
    /// - Parameters:
    ///   - containerPortal: container portal.
    ///   - remoteGlobalID: remote global ID.
    ///   - proxyType: proxy type.
    ///   - remoteInfo: remote info.
    public init(containerPortal: PBXObject,
                remoteGlobalID: PBXObject? = nil,
                proxyType: ProxyType? = nil,
                remoteInfo: String? = nil) {
        containerPortalReference = containerPortal.reference
        remoteGlobalIDReference = remoteGlobalID?.reference
        self.remoteInfo = remoteInfo
        self.proxyType = proxyType
        super.init()
    }

    // MARK: - Decodable

        }
    }

    /// Returns file reference of the remote xcodeproj bundle. Use isContainerPortalFileReference to check if you can use the getter.
    public var containerPortalAsFileReference: PBXFileReference! {
        get {
            return containerPortalReference.getObject()
        }
        set {
            containerPortalReference = newValue.reference
        }
    }

    public var isContainerPortalFileReference: Bool {
        return containerPortalReference.getObject() as? PBXFileReference != nil
    }

    /// Element proxy type.
    public var proxyType: ProxyType?

    /// Element remote global ID reference.
    var remoteGlobalIDReference: PBXObjectReference?

    /// Remote global object. When referencing objects in remote .xcodeproj this will return nil, for such case use remoteGlobalIDString.
    public var remoteGlobalID: PBXObject? {
        get {
            return remoteGlobalIDReference?.getObject()
