static Offer fixFunctionIncludeSnippetName(S snippetID) { if (!isJavaXIncludeSnippet(snippetID)) null; S text = loadSnippet(snippetID); S fname = first(findFunctionDefsAtCurlyLevel(0, text)); if (empty(fname)) null; S title = snippetTitle(snippetID); LS tok = javaTok(title); if (neq(firstToken(tok), fname)) { tok.set(1, fname); ret Offer("Rename snippet " + snippetID + " to: " + join(tok), r { renameSnippet(snippetID, join(tok)) }); } null; }