List<String> (Collection<String> prefixes) { List<String> resultPrefixes = Lists.newArrayList(); for (String prefix : prefixes) { if (prefix.startsWith("//") || prefix.startsWith("##")) { resultPrefixes.add(StringUtil.trimLeading(prefix.substring(2))); } else { resultPrefixes.add(prefix); } } return resultPrefixes; }