if (!scope.containsAll(issue.getScope())) { continue; EnumSet<Scope> s = detectorToScope.get(detectorClass); if (s == null) { detectorToScope.put(detectorClass, issue.getScope()); } else { EnumSet<Scope> union = EnumSet.copyOf(s); union.addAll(issue.getScope()); detectorToScope.put(detectorClass, union);