public static double getStrokeCenter(@NotNull Graphics2D g, double xy, @NotNull StrokeType strokeType, double strokeWidth) {
    return getStrokeCenter(ScaleContext.create(g), xy, strokeType, strokeWidth);
  }
public static double getStrokeCenter(@NotNull Graphics2D g, double xy, @NotNull StrokeType strokeType, double strokeWidth)