protected boolean isFileVisible(File file){
  if (file == null || !file.exists() || !file.canRead() || file.isHidden()) {
    return false;
  }
  return true;
}

protected boolean isFileVisible ( File file ) { if ( file == null || ! file . exists ( ) || ! file . canRead ( ) || file . isHidden ( ) ) { return false ; } return true ; }
returns true if the given file is visible
