// TODO: refactor this
// how to retrieve the project of the selected elements ?
// what happens if someone selects DocumentElements form
// different projects ?
if (!documentElements.isEmpty()) {
DocumentElement aDocument = documentElements.getFirst();
NlpProject project = aDocument.getNlpProject();
Collection<CasProcessorFolder> sourceFolders = project.getCasProcessorFolders();
for (CasProcessorFolder sourceFolder : sourceFolders) {
Collection<AnnotatorElement> annotators = sourceFolder.getAnnotators();