Fixing Resharper refactoring operations that failed