List<Annotator> (@NotNull Collection<? extends Annotator> templates) { List<Annotator> result = new ArrayList<>(templates.size()); for (Annotator template : templates) { Annotator annotator; try { annotator = ReflectionUtil.newInstance(template.getClass()); } catch (Exception e) { LOG.error(PluginException.createByClass(e, template.getClass())); continue; } result.add(annotator); myAnnotatorStatisticsCollector.reportNewAnnotatorCreated(annotator); } return result; }