private static Dimension getSize(Dimension size, Integer width, Integer height, boolean isSet) {
    if (!isSet && size != null) {
      if (width != null) size.width = JBUIScale.scale(width);
      if (height != null) size.height = JBUIScale.scale(height);
    }
    return size;
  }
private static Dimension getSize(Dimension size, Integer width, Integer height, boolean isSet)