public static MethodDeclarationSyntax GetMethod(this SyntaxToken token) { var parent = token.Parent; return GetMethod(parent); }