showStatisticsMenu.addMenuListener(new MenuListener() {
public void menuSelected(MenuEvent e) {
final JMenu menu = (JMenu) e.getSource();
menu.removeAll();
removeActionsOfType(coll,ShowStatisticsAction.class);
iterateIndexes(new IndexIterationListener() {
public void indexSpotted(final ITableInfo tableInfo, final String indexName) {
final ShowStatisticsAction showStatisticsAction = new ShowStatisticsAction(app,_resources,plugin,tableInfo,indexName);
showStatisticsAction.setSession(_session);
coll.add(showStatisticsAction);
_resources.addToMenu(showStatisticsAction,menu);