JOSM Plugin register for an GPS layer context menu

Hi, what is the way to extend the context menu of a GPS layer? I saw something for the image layer but for the GPS layer it seem to work in a different way :frowning:


public GeotaggingPlugin(PluginInformation info) {
        super(info);
        GeoImageLayer.registerMenuAddition(new GeotaggingMenuAddition());
    }