code: public static List<ProgramElementDoc> excludeDeprecatedMembersAsList(
          ProgramElementDoc[] members) {
          List<ProgramElementDoc> list = new ArrayList<ProgramElementDoc>();
          for (int i = 0; i < members.length; i++) {
              if (members[i].tags("deprecated").length == 0) {
                  list.add(members[i]);
              }
          }
          Collections.sort(list);
          return list;
      }
docs: Return array of class members whose documentation is to be generated.
  If the member is deprecated do not include such a member in the
  returned array.
  
  @param  members    Array of members to choose from.
  @return List       List of eligible members for whom
  documentation is getting generated.