public PackageSource Clone()
 {
     return(new PackageSource(Source, Name, IsEnabled, IsOfficial, IsPersistable)
     {
         Description = Description,
         Credentials = Credentials?.Clone(),
         ClientCertificates = ClientCertificates?.ToList(),
         IsMachineWide = IsMachineWide,
         ProtocolVersion = ProtocolVersion,
     });
 }