https://peterkellner.net/2010-07-29-resharper-refactor-locking-linq/