/// <summary>
        ///     Writes method body to output writer
        /// </summary>
        /// <param name="returnType">Method return type</param>
        /// <param name="resolver">Type resolver</param>
        /// <param name="sw">Output writer</param>
        /// <param name="content">Content for non-void body</param>
        protected virtual void GenerateBody(string returnType, TypeResolver resolver, WriterWrapper sw,
                                            string content = "return null;")
        {
            if (Settings.ExportPureTypings) //Ambient class declarations cannot have a body
            {
                sw.Write(";");
                sw.Br();
            }
            else
            {
                if (returnType != "void")
                {
                    sw.WriteLine();
                    sw.WriteIndented(@"{{ 
    {0}
}}", content);
                }
                else
                {
                    sw.Write(" {{ }}");
                    sw.Br();
                }
            }
        }