private void addActionToIconSubmenu(final JMenu menu, final MindIcon icon, final String fileName) {
final AFreeplaneAction myAction = iconActions.get(icon);
final int separatorPosition = fileName.indexOf('/');
if (separatorPosition == -1) {
new MenuSplitter().addMenuComponent(menu, new JMenuItem(myAction), menu.getItemCount());
return;
}
final String submenuName = fileName.substring(0, separatorPosition);
final int componentCount = menu.getItemCount();
if (componentCount != 0) {