@Nullable
  public static String findDirectory(long requiredFreeSpace) {
    String dir = System.getProperty("java.io.tmpdir");
    if (dir != null && isValidDir(dir, requiredFreeSpace)) {
      return dir;
    }
    return null;
  }
@Nullable
  public static String findDirectory(long requiredFreeSpace)