internal void RegisterContextMenuCommands(IList<MenuCommand> commands, IEditorComponent plugin) { foreach (MenuCommand command in commands) { if (command.ID != null) { command.ID = RegisterMenuCommand(command.ID, plugin); } } }