List<ReportPlugin> reportPlugins = new ArrayList<>();
for (JqassistantPlugin plugin : plugins) {
ReportType reportType = plugin.getReport();
if (reportType != null) {
for (String reportPluginName : reportType.getClazz()) {
ReportPlugin reportPlugin = createInstance(reportPluginName);
if (reportPlugin != null) {
try {
reportPlugin.initialize(new HashMap<>(properties));
} catch (AnalysisListenerException e) {
throw new PluginRepositoryException("Cannot initialize plugin " + reportPluginName, e);
}
reportPlugins.add(reportPlugin);
}