private IEnumerable<Command> GetCommandsForPlatform(Platform platform) { lock (_pluginLock) { return _commands.Where(x => x.Item2.Count() == 0 || x.Item2.Contains(platform.GetType())).Select(x => x.Item1); } }