refactor: avoid layout a label in JMenuItem if the accelerator is null