Set<String> (@NotNull List<String> errorLines) { // hg version command execute with null start directory, // but hgrc configuration file may be related to one of repository then extension may be failed to import too //before fixed use command exit value instead if errors.isEmpty //todo store all unsupported extensions for all repository and notify once Set<String> extensions = new HashSet<>(); if (errorLines.isEmpty()) { return extensions; } for (String line : errorLines) { Matcher matcher = HG_UNSUPPORTED_EXTENSION.matcher(line); if (matcher.matches()) { extensions.add(matcher.group(1)); } } return extensions; }