in tooling/rib-intellij-plugin/src/main/kotlin/com/uber/intellij/plugin/android/rib/RibProjectService.kt [179:191]
public fun selectDevice(device: IDevice?) {
if (selectedDevice == device) {
return
}
if (device != null && !devices.contains(device)) {
throw IllegalArgumentException("Selecting not connected device")
}
selectedDevice = device
ribPanel?.onSelectedDeviceChanged(selectedDevice)
refreshRibHierarchy()
}