docs: int getDevicePriority(IoDevice device)
      {
          for (PriorityIoDeviceTuple tuple : mCompatibleDevices)
          {
              if (tuple.getIoDevice().equals(device))
              {
                  return tuple.getPriority();
              }
          }
          return -1;
      }