static boolean sameSnippetID(S a, S b) { if (!isSnippetID(a) || !isSnippetID(b)) false; return parseSnippetID(a) == parseSnippetID(b); }