// Not sure what causes this, but ReSharper's own create field uses it public CreateFromUsageFix(AccessRightsError error) : this(error.Reference) { }
public UseReflectionQuickFix(AccessRightsError error) { _error = error; _declaredElement = error.Reference.CurrentResolveResult.DeclaredElement; _languageForPresentation = error.Reference.GetTreeNode().Language; }