static @NotNull List<Path> getSettingsXmlFiles(@NotNull Path dir) throws CannotConvertException {
    try (DirectoryStream<Path> stream = Files.newDirectoryStream(dir)) {
      List<Path> result = new ArrayList<>();
      for (Path path : stream) {
        if (path.getFileName().toString().endsWith(".xml")) {
          result.add(path);
        }
      }
      return result;
    }
    catch (NoSuchFileException ignore) {
      return Collections.emptyList();
    }
    catch (IOException e) {
      throw new CannotConvertException(e);
    }
  }
static @NotNull List<Path> getSettingsXmlFiles(@NotNull Path dir)