@Nullable
    public static GeoItem createStar(final Geocache cache) {
        if (!canHaveStar(cache)) {
            return null;
        }

        final GeoStyle style = GeoStyle.builder().setStrokeColor(Color.RED).setStrokeWidth(2f).build();

        final List<GeoPrimitive> lines = new ArrayList<>();
        for (Waypoint w : cache.getWaypoints()) {
            if (w.getCoords() != null) {
                lines.add(GeoPrimitive.builder().setType(GeoItem.GeoType.POLYLINE)
                    .addPoints(cache.getCoords(), w.getCoords()).setStyle(style).build());
            }
        }
        return GeoGroup.create(lines);
    }
Creates a GeoItem representing the "star" of a geocache. If Geocache can't have a star, then null is returned
main/src/main/java/cgeo/geocaching/maps/MapStarUtils.java