public static float pixScale(@Nullable Component component) {
    return pixScale(component == null ? null : component.getGraphicsConfiguration());
  }
public static float pixScale(@Nullable Component component)