code: private static int positionInList(final List<char[]> list, final char[] element) {
          int i = 0;
          for (final char[] e : list) {
              if (Arrays.equals(e, element)) {
                  return i;
              }
              i++;
          }
          return -1;
      }
docs: /*
  Utility method, used for determining which of the different NCRs for the same
  codepoint (when there are many) was specified first, because that is the one
  we should be using for escaping.
  (Note all of the NCRs will be available for unescaping, obviously)