class BaseLayerSwitcherPlugin implements PopupMenu.OnMenuItemClickListener {

    public boolean addBaseLayer(@NonNull BaseLayer baseLayer, boolean isDefault) {
        if (baseLayers.contains(baseLayer)) {
            // Todo: switch the currentBaseLayer to this one here
            if (isDefault && currentBaseLayer != null && !currentBaseLayer.getId().equals(baseLayer.getId())) {
                showBaseLayer(baseLayer);
            }

            return false;
        }

        for (BaseLayer addedBaseLayer: baseLayers) {
            if (addedBaseLayer.getId().equals(baseLayer.getId())) {
                if (isDefault && currentBaseLayer != null && !currentBaseLayer.getId().equals(baseLayer.getId())) {
                    showBaseLayer(baseLayer);
                }
                return false;
            }
        }

        this.baseLayers.add(baseLayer);
        // Todo: switch the currentBaseLayer to this one here
        if (isDefault) {
            showBaseLayer(baseLayer);
        }
        return true;
    }

    public  BaseLayerSwitcherPlugin(@NonNull KujakuMapView kujakuMapView, @NonNull Style style);

}