private static long lastModified(Path path) {
    try {
      return Files.getLastModifiedTime(path).toMillis();
    }
    catch (NoSuchFileException ignored) {
    }
    catch (IOException e) {
      LOG.warn(e);
    }
    return 0L;
  }
private static long lastModified(Path path)