code: public static void watchFile(String file, SimpleHutoolWatcher watcher, boolean shouldFirstExecute) {
          if (shouldFirstExecute) {
              watcher.doSomething();
          }
          SimpleWatcher simpleWatcher = new SimpleWatcher() {
              @Override
              public void onModify(WatchEvent<?> event, Path currentPath) {
                  watcher.onModify(event, currentPath);
                  watcher.doSomething();
              }
          };
          try (WatchMonitor monitor = WatchMonitor.createAll(file, simpleWatcher)) {
              monitor.start();
          }
      }
docs: 监听文件
  
  @param file 待监听的文件
  @param watcher {@link SimpleHutoolWatcher}
  @param shouldFirstExecute 第一次是否执行 {@link SimpleHutoolWatcher#doSomething()}
  
  @since 1.1.1