class ArchiveImageLoader {

    public void importImages(Path archiveFile, ArchiveRoot archiveRoot, List<ParsingError> parsingErrors) {
        // Import archive icons
        importImages(archiveFile, archiveRoot.getNodeTypes(), parsingErrors);
        importImages(archiveFile, archiveRoot.getRelationshipTypes(), parsingErrors);
        importImages(archiveFile, archiveRoot.getCapabilityTypes(), parsingErrors);
        importImages(archiveFile, archiveRoot.getArtifactTypes(), parsingErrors);
        importImages(archiveFile, archiveRoot.getPolicyTypes(), parsingErrors);
        // Import topology icon
        importImages(archiveFile, archiveRoot.getArchive().getTags(), parsingErrors);
        if (archiveRoot.getArchive().isHasTopology()) {
            importImages(archiveFile, archiveRoot.getTopology().getTags(), parsingErrors);
        }
    }

}