        ~expr-sym)))
 
 (defn- set-legend!
-  [styler
+  [^Styler styler
    {:keys [background-color border-color font padding
            position series-line-length visible]}]
   (doto-cond

   (not (nil? visible)) (.setLegendVisible visible)))

(defn- set-chart-title-style!
  [styler
   {:keys [box-background-color box-border-color box-visible
           font padding visible]}]
  (doto-cond

                             PieSeries$PieSeriesRenderStyle
                             XYSeries$XYSeriesRenderStyle
                             XChartPanel)
           (org.knowm.xchart.style Styler
                                   Styler$LegendPosition
                                   GGPlot2Theme
                                   MatlabTheme
                                   XChartTheme)
