code: @Implementation
    protected void closeProfileProxy(int profile, BluetoothProfile proxy) {
      if (!isOverridingProxyBehavior) {
        directlyOn(realAdapter, BluetoothAdapter.class).closeProfileProxy(profile, proxy);
        return;
      }
  
      if (proxy != null && proxy.equals(profileProxies.get(profile))) {
        profileProxies.remove(profile);
      }
    }
docs: Overrides behavior of {@link closeProfileProxy} if {@link
  ShadowBluetoothAdapter#setProfileProxy} has been previously called.
  
  If the given non-null BluetoothProfile {@code proxy} was previously set for the given {@code
  profile} by {@link ShadowBluetoothAdapter#setProfileProxy}, this proxy will be "deactivated".