public static KindredSnippets[] toArray(ArrayList<KindredSnippets> snippets){
  if (snippets == null || snippets.isEmpty()) {
    return Empty;
  }
  return snippets.toArray(new KindredSnippets[snippets.size()]);
}

public static KindredSnippets [ ] toArray ( ArrayList < KindredSnippets > snippets ) { if ( snippets == null || snippets . isEmpty ( ) ) { return Empty ; } return snippets . toArray ( new KindredSnippets [ snippets . size ( ) ] ) ; }
convert an arraylist of snippets to an array of snippets . use the shared empty array if the arraylist is empty or null .
