class IRGetClearedReleases extends IRForReleases {

    @Override
    public Collection<SW360Release> execute(SW360Connection connection) {
        final List<SW360SparseComponent> components = connection.getComponentAdapter().search(ComponentSearchParams.ALL_COMPONENTS);

        final Predicate<SW360Release> isApproved = ComplianceFeatureUtils::isApproved;
        return getReleasesFromComponentsByPredicate(connection, components, isApproved);
    }

}