public static void addMenuIfNecessary(final SimplePopupMenu menu, final Geocache cache, final boolean isStarDrawnOnMap, final Action1<Boolean> setStarDrawnOnMap) {
        if (!canHaveStar(cache)) {
            return;
        }
        if (isStarDrawnOnMap) {
            menu.addMenuItem(LocalizationUtils.getString(R.string.context_map_star_hide), R.drawable.ic_menu_delete, i -> setStarDrawnOnMap.call(false));
        } else {
            menu.addMenuItem(LocalizationUtils.getString(R.string.context_map_star_show), R.drawable.ic_menu_add, i -> setStarDrawnOnMap.call(true));
        }
    }
Adds entries to add/remove star to a cache's context menu, if necessary
main/src/main/java/cgeo/geocaching/maps/MapStarUtils.java