static boolean sameSnippetID(S a, S b) { return a != null && b != null && parseSnippetID(a) == parseSnippetID(b); }