code: private static List<String> getElementsId(List<Element> elementList) {
          List<String> result = new ArrayList<String>();
  
          for (Element element : elementList) {
              result.add(element.getAttribute("id"));
          }
  
          return result;
      }
docs: Reads list of queries (as {@link Element} and returns it as list of query names
  
  @param elementList list of {@link Element}
  @return list of query names