@Override
    public boolean contains(@NotNull VirtualFile file) {
      return myWithSubdirectories ? VfsUtilCore.isAncestor(myDirectory, file, false)
                                  : myDirectory.equals(file) || myDirectory.equals(file.getParent());
    }
@Override
    public boolean contains(@NotNull VirtualFile file)