if (!documentElements.isEmpty()) {
IRunnableWithProgress annotatorRunnableAction = new CleanDocumentActionRunnable(
documentElements);
RunnableAction annotatorAction = new RunnableAction(shell, "Clean documents",
annotatorRunnableAction);
menu.add(annotatorAction);
}
}