private static MethodDeclarationSyntax MemberFunctionModifiers(MethodDeclarationSyntax method) { var modifiers = method.Modifiers; if (!modifiers.Any(m => m.IsKind(SyntaxKind.StaticKeyword))) { method = method.AddModifiers(CSharp.Token(SyntaxKind.StaticKeyword)); } if (!Roslyn.HasVisibilityModifier(method.Modifiers)) { method = method.AddModifiers(CSharp.Token(SyntaxKind.PublicKeyword)); } return(method); }