ui/ui/src/main/java/com/squareup/subzero/wallet/WalletLoader.java
public void ensureDoesNotExist(int walletId) {
    Path path = getWalletPath(walletId);
    if (path.toFile().exists()) {
      throw new IllegalStateException(format("%s already exists.", path));
    }

    // TODO: check whether file exists on USB backup drive
  }
/**
   * Throws IllegalStateException if a given wallet file exists.
   */
Throws IllegalStateException if a given wallet file exists.
Throws IllegalStateException if a given wallet file exists .
public void ensureDoesNotExist(int walletId) {
    Path path = getWalletPath(walletId);
    if (path.toFile().exists()) {
      throw new IllegalStateException(format("%s already exists.", path));
    }
  }
public void ensureDoesNotExist ( int walletId ) { Path path = getWalletPath ( walletId ) ; if ( path . toFile ( ) . exists ( ) ) { throw new IllegalStateException ( format ( "%s already exists." , path ) ) ; } }
Throws IllegalStateException if a given wallet file exists.
Throws IllegalStateException if a given wallet file exists .
// TODO: check whether file exists on USB backup drive