.setToReviewSecurityHotspots(cat.getToReviewSecurityHotspots()) .setWontFixSecurityHotspots(cat.getWontFixSecurityHotspots()) .setTotalRules(cat.getTotalRules()) .setActiveRules(cat.getActiveRules()); if (cat.getChildren() != null) { .setWontFixSecurityHotspots(cwe.getWontFixSecurityHotspots()) .setActiveRules(cwe.getActiveRules()) .setTotalRules(cwe.getTotalRules()); catBuilder.addDistribution(cweBuilder); });