class PackageGraph implements ProgressCheck {

    @Override
    public void identifySubpackage(final PackageId packageId, final PackageId parentId) {
        if (packageId != null && parentId != null) {
            identified.add(packageId);
            getOrCreateNode(packageId).setParent(getOrCreateNode(parentId));
        }
    }

}