docs: private void markAcquiredConnectionsLocked(AcquiredConnectionStatus status) {
          if (!mAcquiredConnections.isEmpty()) {
              ArrayList<SQLiteConnection> keysToUpdate = new ArrayList<SQLiteConnection>(
                      mAcquiredConnections.size());
              for (Map.Entry<SQLiteConnection, AcquiredConnectionStatus> entry
                      : mAcquiredConnections.entrySet()) {
                  AcquiredConnectionStatus oldStatus = entry.getValue();
                  if (status != oldStatus
                          && oldStatus != AcquiredConnectionStatus.DISCARD) {
                      keysToUpdate.add(entry.getKey());
                  }
              }
              final int updateCount = keysToUpdate.size();
              for (int i = 0; i < updateCount; i++) {
                  mAcquiredConnections.put(keysToUpdate.get(i), status);
              }
          }
      }