IssueQuery query = IssueQuery.create()
.componentRoots(resourceKey)
.resolved(false)
.pageSize(-1);
Issues issues = sonarClient.issueClient().find(query);
builder.addAll(issues.list());
for (int pageIndex = 2; pageIndex <= issues.paging().pages(); pageIndex++) {
final ProgressIndicator progressIndicator = ProgressManager.getInstance().getProgressIndicator();
if (progressIndicator.isCanceled())
break;
progressIndicator.setText2(pageIndex + " / " + issues.paging().pages());