public ProjectMonitorViewState(SProject project, UserGroup userGroup) { this.project = project; builds = new ArrayList<BuildTypeMonitorViewState>(); for (SBuildType buildType : project.getBuildTypes()) { if (hasAtLeastOneBuild(buildType)) { if (buildType.isAllowExternalStatus()) { builds.add(new BuildTypeMonitorViewState(buildType, userGroup)); } } } for (BuildTypeMonitorViewState build : builds) { committers.addAll(build.getCommitters()); } }