public static boolean isWritable(@NotNull Path path) {
    try {
      return Files.isWritable(path);
    }
    catch (SecurityException e) {
      return false;
    }
  }
public static boolean isWritable(@NotNull Path path)