public static Rectangle convertToDeviceSpace(GraphicsConfiguration gc, @NotNull Rectangle bounds) {
    Rectangle b = bounds.getBounds();
    if (shouldConvert()) {
      try {
        scaleUp(b, gc);
      }
      catch (HeadlessException ignore) { }
    }
    return b;
  }
public static Rectangle convertToDeviceSpace(GraphicsConfiguration gc, @NotNull Rectangle bounds)