private static bool IsMultiline(FieldDeclarationSyntax fieldDeclaration)
        {
            var lineSpan = fieldDeclaration.GetLineSpan();
            var attributeLists = fieldDeclaration.AttributeLists;

            int startLine;

            // Exclude attributes when determining if a field declaration spans multiple lines
            if (attributeLists.Count > 0)
            {
                var lastAttributeSpan = fieldDeclaration.SyntaxTree.GetLineSpan(attributeLists.Last().FullSpan);
                startLine = lastAttributeSpan.EndLinePosition.Line;
            }
            else
            {
                startLine = lineSpan.StartLinePosition.Line;
            }

            return startLine != lineSpan.EndLinePosition.Line;
        }