String[] fixes = algorithm.getGlobalFixes();
if ((fixes != null) && (fixes.length > 0)) {
menu.addSeparator(popup);
for (int i = 0; i < fixes.length; i++) {
menuItem = new JMenuItem(fixes[i]);
ActionListener action = new CheckErrorGlobalFixAction(
algorithm, fixes[i], error.getPage(), textComponent, button);
menuItem.addActionListener(action);
popup.add(menuItem);
}
}