docs: public static void setMapScaleBar(MapView mapView,
                                        DistanceUnitAdapter primaryDistanceUnitAdapter,
                                        DistanceUnitAdapter secondaryDistanceUnitAdapter) {
          if (null == primaryDistanceUnitAdapter && null == secondaryDistanceUnitAdapter) {
              mapView.setMapScaleBar(null);
          } else {
              MapScaleBar scaleBar = mapView.getMapScaleBar();
              if (scaleBar == null) {
                  scaleBar = new DefaultMapScaleBar(mapView.getModel().mapViewPosition, mapView.getModel().mapViewDimension,
                          AndroidGraphicFactory.INSTANCE, mapView.getModel().displayModel);
                  mapView.setMapScaleBar(scaleBar);
              }
              if (scaleBar instanceof DefaultMapScaleBar) {
                  if (null != secondaryDistanceUnitAdapter) {
                      ((DefaultMapScaleBar) scaleBar).setScaleBarMode(DefaultMapScaleBar.ScaleBarMode.BOTH);
                      ((DefaultMapScaleBar) scaleBar).setSecondaryDistanceUnitAdapter(secondaryDistanceUnitAdapter);
                  } else {
                      ((DefaultMapScaleBar) scaleBar).setScaleBarMode(DefaultMapScaleBar.ScaleBarMode.SINGLE);
                  }
              }
              scaleBar.setDistanceUnitAdapter(primaryDistanceUnitAdapter);
          }
      }