private void AddCommand(IList<ICommand> commands, ICommand command) { if (this.hoistedCommands != null && IsHoistedCommand(command)) this.hoistedCommands.Add(command); else if (!IsNoOperationCommand(command)) commands.Add(command); }