code: public ProgramElementDoc[] toProgramElementDocArray(List<ProgramElementDoc> list) {
          ProgramElementDoc[] pgmarr = new ProgramElementDoc[list.size()];
          for (int i = 0; i < list.size(); i++) {
              pgmarr[i] = list.get(i);
          }
          return pgmarr;
      }
docs: Return the list of ProgramElementDoc objects as Array.