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