public static boolean isFileHidden(@Nullable VirtualFile file) {
    return file != null &&
           file.isValid() &&
           file.isInLocalFileSystem() &&
           (file.is(VFileProperty.HIDDEN) || SystemInfo.isUnix && file.getName().startsWith("."));
  }
public static boolean isFileHidden(@Nullable VirtualFile file)