@Implementation
  protected void closeProfileProxy(int profile, BluetoothProfile proxy) {
    """
	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".
    """
    if (!isOverridingProxyBehavior) {
      directlyOn(realAdapter, BluetoothAdapter.class).closeProfileProxy(profile, proxy);
      return;
    }

    if (proxy != null && proxy.equals(profileProxies.get(profile))) {
      profileProxies.remove(profile);
    }
  }
@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);
    }
  }
@ 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 ) ; } }
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".
Overrides behavior of { @link closeProfileProxy } if { @link ShadowBluetoothAdapter#setProfileProxy } has been previously called .