code: protected void adjustIndexMap(Doc[] elements) {
          for (int i = 0; i < elements.length; i++) {
              if (shouldAddToIndexMap(elements[i])) {
                  String name = elements[i].name();
                  char ch = (name.length()==0)?
                      '*' :
                      Character.toUpperCase(name.charAt(0));
                  Character unicode = new Character(ch);
                  List<Doc> list = indexmap.get(unicode);
                  if (list == null) {
                      list = new ArrayList<Doc>();
                      indexmap.put(unicode, list);
                  }
                  list.add(elements[i]);
              }
          }
      }
docs: Adjust list of members according to their names. Check the first
  character in a member name, and then add the member to a list of members
  for that particular unicode character.
  
  @param elements Array of members.