void (List<? super String> added, List<? super String> removed, boolean negated) { Set<String> baseline = new HashSet<>(); for (CustomizableConsoleFoldingBean regexp : CustomizableConsoleFoldingBean.EP_NAME.getExtensionList()) { if (regexp.negate == negated) { baseline.add(regexp.substring); } } List<String> current = patternList(negated); added.addAll(current); added.removeAll(baseline); baseline.removeAll(current); removed.addAll(baseline); }