/**
  * Interns the given strings inplace with the given pool.
  *
  * @param strings the strings to intern.
  * @param pool the string pool to use.
  * @return an interned string array.
  */
 public static String[] internStrings(String[] strings, StringPool pool) {
   Preconditions.checkNotNull(pool, "Pool shouldn't be null!");
   for (int i = 0; i < strings.length; i++) {
     strings[i] = pool.pool(strings[i]);
   }
   return strings;
 }