List<Substring> (String... tagNames) { final List<Substring> result = new ArrayList<>(); for (String tagName : tagNames) { final Map<Substring, Substring> map = myArgTagValues.get(tagName); if (map != null) { result.addAll(map.keySet()); } } return result; }