private void ensureUpgradesIsMutable() {
        if (!((bitField0_ & 0x00002000) == 0x00002000)) {
          upgrades_ = new java.util.ArrayList<org.bwapi.proxy.messages.GameMessages.UpgradeTypeData>(upgrades_);
          bitField0_ |= 0x00002000;
         }
      }