public static ParityMode getParityMode(double usrValue, @NotNull Graphics2D g) {
    return getParityMode(usrValue, ScaleContext.create(g), null);
  }
public static ParityMode getParityMode(double usrValue, @NotNull Graphics2D g)