Set<Class<?>> getLimitedTags() { Set<Class<?>> tags = filterSourceSection.getLimitedTags(); if (inputFilter != null) { Set<Class<?>> inputTags = inputFilter.getLimitedTags(); if (tags == null) { return inputTags; } if (inputTags == null) { return tags; } if (inputTags.equals(tags)) { return tags; } else { Set<Class<?>> compoundTags = new HashSet<>(); compoundTags.addAll(tags); compoundTags.addAll(inputTags); return compoundTags; } } else { return tags; } }
Set<Class<?>> getLimitedTags() { Set<Class<?>> tags = filterSourceSection.getLimitedTags(); if (inputFilter != null) { Set<Class<?>> inputTags = inputFilter.getLimitedTags(); if (tags == null) { return inputTags; } if (inputTags == null) { return tags; } if (inputTags.equals(tags)) { return tags; } else { Set<Class<?>> compoundTags = new HashSet<>(); compoundTags.addAll(tags); compoundTags.addAll(inputTags); return compoundTags; } } else { return tags; } }