static ThrowStatement ImplementStub(RefactoringContext context, EntityDeclaration newNode)
        {
            ThrowStatement throwStatement = null;

            if (newNode is PropertyDeclaration || newNode is IndexerDeclaration)
            {
                var setter = newNode.GetChildByRole(PropertyDeclaration.SetterRole);
                if (!setter.IsNull)
                {
                    setter.AddChild(CreateNotImplementedBody(context, out throwStatement), Roles.Body);
                }

                var getter = newNode.GetChildByRole(PropertyDeclaration.GetterRole);
                if (!getter.IsNull)
                {
                    getter.AddChild(CreateNotImplementedBody(context, out throwStatement), Roles.Body);
                }
            }
            else
            {
                newNode.AddChild(CreateNotImplementedBody(context, out throwStatement), Roles.Body);
            }
            return(throwStatement);
        }