docs: public List<Identity> getIdentities(String category, String type) {
          List<Identity> res = new ArrayList<>(identities.size());
          for (Identity identity : identities) {
              if (identity.getCategory().equals(category) && identity.getType().equals(type)) {
                  res.add(identity);
              }
          }
          return res;
      }