public static @NotNull JBDimension create(Dimension from, boolean preScaled) {
    if (from instanceof JBDimension) {
      return ((JBDimension)from);
    }
    return new JBDimension(from.width, from.height, preScaled);
  }
public static @NotNull JBDimension create(Dimension from, boolean preScaled)