@Override
  public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
    if (!Files.isHidden(file)) {
      fileVisitAction.execute(file);
    }
    return FileVisitResult.CONTINUE;
  }
@Test
  public void visit_hidden_file() throws IOException {
    DirectoryFileVisitor.FileVisitAction action = mock(DirectoryFileVisitor.FileVisitAction.class);

    File hidden = temp.newFile(".hidden");
    if (SystemUtils.IS_OS_WINDOWS) {
      Files.setAttribute(hidden.toPath(), "dos:hidden", true, LinkOption.NOFOLLOW_LINKS);
    }


    DirectoryFileVisitor underTest = new DirectoryFileVisitor(action, module, moduleExclusionFilters, inputModuleHierarchy, type);
    underTest.visitFile(hidden.toPath(), Files.readAttributes(hidden.toPath(), BasicFileAttributes.class));

    verify(action, never()).execute(any(Path.class));
  }