docs: private void removeDuplicatedProjects(DbSession session, String projectKey) {
      List<ComponentDto> duplicated = dbClient.componentDao().selectComponentsHavingSameKeyOrderedById(session, projectKey);
      for (int i = 1; i < duplicated.size(); i++) {
        dbClient.componentDao().delete(session, duplicated.get(i).getId());
      }
    }