update SnippetGenerator add file processing