code: public List<Group> getGroups() {
          List<Group> allGroups = new ArrayList<Group>();
  
          if (root != null) {
              getGroups(root, allGroups);
          }
  
          return allGroups;
      }
docs: Retrieves a list of all groups in the KeePass database.
  
  @return a list of all groups
  @see Group