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