private static int scaleWithEditor(float v, @NotNull Editor editor) {
    float scale = editor instanceof EditorImpl ? ((EditorImpl)editor).getScale() : 1.0f;
    return PaintUtil.RoundingMode.ROUND.round(v * scale);
  }
private static int scaleWithEditor(float v, @NotNull Editor editor)