class AndroidProfilerToolWindow implements Disposable {

  @NotNull
  static String getDeviceDisplayName(@NotNull IDevice device) {
    StringBuilder deviceNameBuilder = new StringBuilder();
    String manufacturer = TransportServiceProxy.getDeviceManufacturer(device);
    String model = TransportServiceProxy.getDeviceModel(device);
    String serial = device.getSerialNumber();
    String suffix = String.format("-%s", serial);
    if (model.endsWith(suffix)) {
      model = model.substring(0, model.length() - suffix.length());
    }
    if (!StringUtil.isEmpty(manufacturer)) {
      deviceNameBuilder.append(manufacturer);
      deviceNameBuilder.append(" ");
    }
    deviceNameBuilder.append(model);

    return deviceNameBuilder.toString();
  }

  public  AndroidProfilerToolWindow(@NotNull ToolWindow window, @NotNull Project project);

}