code: private void composeDeprecatedList(SortedSet<Element> rset, SortedSet<Element> sset, List<? extends Element> members) {
          for (Element member : members) {
              if (utils.isDeprecatedForRemoval(member)) {
                  rset.add(member);
              }
              if (utils.isDeprecated(member)) {
                  sset.add(member);
              }
          }
      }
docs: Add the members into a single list of deprecated members.
  
  @param rset set of elements deprecated for removal.
  @param sset set of deprecated elements.
  @param list List of all the particular deprecated members, e.g. methods.
  @param members members to be added in the list.