static Set collectSnippetIDsInTranspiledSnippet(S snippetID) { if (isImageSnippetID(snippetID)) ret new Set; int type = getSnippetType(snippetID); if (!isJavaxCompilableSnippetTypeExceptInclude(type)) ret new Set; S src = getServerTranspiled2(snippetID); //Set set = collectSnippetIDsInText(src); Set set = collectSnippetIDsInJavaSource(dropFirstLine(src)); // skip comments LS libs = map fsI(regexpAll("[0-9]+", firstLine(src)); print("Libs for " + snippetID + ": " + libs); addAll(set, libs); ret set; }