private MenuItem addToFavouritesMenuItem(final int priority, final TabData selectedTab) {
        final DocRef selectedDoc = getSelectedDoc(selectedTab);
        return new IconMenuItem.Builder()
                .priority(priority)
                .icon(SvgImage.FAVOURITES)
                .text("Add to Favourites")
                .enabled(selectedDoc != null)
                .command(() -> {
                    if (selectedDoc != null) {
                        SetDocumentAsFavouriteEvent.fire(
                                DocumentPluginEventManager.this, selectedDoc, true);
                    }
                })
                .build();
    }
Highlights the supplied document item in the explorer tree.
stroom-core-client/src/main/java/stroom/document/client/DocumentPluginEventManager.java