static S snippetWithTitle(S id) { if (!isSnippetID(id)) ret id; id = formatSnippetID(id); ret id + " - " + getSnippetTitle(id); } static S snippetWithTitle(Snippet s) { ret s == null ? "-" : s.id + " - " + s.title; }