code: @Override
      public boolean accept(File file) {
          return WatcherUtils.isInDirectory(file, WatcherUtils.getJavaSource(basedir));
      }
docs: Checks whether or not an event on the given file should trigger the Java compilation.
  
  @param file the file
  @return {@literal true} if the given file is a JAva file and is contained in the Java source directory.