private static double getStrokeCenter(@NotNull ScaleContext ctx, double xy, @NotNull StrokeType strokeType, double strokeWidth) {
    if (strokeType == StrokeType.INSIDE) {
      return xy + strokeWidth / 2;
    }
    if (strokeType == StrokeType.OUTSIDE) {
      return xy - strokeWidth / 2;
    }
    double[] strokeSplit = getStrokeSplit(ctx, strokeType, strokeWidth);
    return xy - strokeSplit[0] / 2 + strokeSplit[1] / 2;
  }
private static double getStrokeCenter(@NotNull ScaleContext ctx, double xy, @NotNull StrokeType strokeType, double strokeWidth)