public static boolean isSymLink(@NotNull File file){
  return isSymLink(file.getAbsolutePath());
}

public static boolean isSymLink ( @ NotNull File file ) { return isSymLink ( file . getAbsolutePath ( ) ) ; }
checks if a last element in the path is a symlink .
